Update changelog for 0.3.0 release #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.414 | |
- 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@v3 | |
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@v3 | |
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@v3 | |
if: always() | |
with: | |
name: integration-test-results | |
path: IO.Eventuate.Tram.IntegrationTests/bin/Release/net6.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 |