Skip to content

Update changelog for 0.4.0 release #24

Update changelog for 0.4.0 release

Update changelog for 0.4.0 release #24

Workflow file for this run

name: Build
on:
push:
# If the build was triggered due to a tag that starts with 'v', consider it a tagged release
env:
IS_TAGGED_RELEASE: ${{startsWith(github.ref, 'refs/tags/v')}}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.204
- name: Build
env:
# Override package name if PACKAGE_ID secret is defined.
# If PACKAGE_ID secret is not defined, IO.Eventuate.Tram will be used.
PACKAGE_ID: ${{secrets.PACKAGE_ID}}
run: ./build.sh
- name: Upload bin folder
uses: actions/upload-artifact@v4
with:
name: bin
path: IO.Eventuate.Tram/bin
- name: Unit Tests
run: dotnet test -c Release --no-build --verbosity normal --logger trx IO.Eventuate.Tram.UnitTests/
- name: Upload unit test results
uses: actions/upload-artifact@v4
if: always()
with:
name: unit-test-results
path: IO.Eventuate.Tram.UnitTests/TestResults
- name: Integration Tests
working-directory: ./IO.Eventuate.Tram.IntegrationTests
env:
CDC_SERVICE_DOCKER_VERSION: 0.6.0.RELEASE
run: ./test.sh
- name: Print docker status
if: always()
run: |
docker ps
docker stats --no-stream --all
- name: Upload integration test results
uses: actions/upload-artifact@v4
if: always()
with:
name: integration-test-results
path: IO.Eventuate.Tram.IntegrationTests/bin/Release/net8.0/TestResults
- name: Publish nuget package
# Don't publish nuget packages for builds triggered by pull requests (pull requests from forks won't have access to secrets anyway)
if: github.event_name != 'pull_request'
env:
NUGET_PUBLISH_URL: ${{secrets.NUGET_PUBLISH_URL}}
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
run: |
./publish-artifacts.sh