Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kubagdynia committed Sep 5, 2024
1 parent 6adef70 commit fe2b8c8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
Expand Down Expand Up @@ -44,8 +45,15 @@ jobs:
dotnet-version: 8.0.x

- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal
run: dotnet test --no-build --verbosity detailed --logger "trx;LogFileName=test_results.trx"
working-directory: ${{env.working-directory}}

- name: Upload test results
if: failure() # Only upload the test results if the tests failed
uses: actions/upload-artifact@v4
with:
name: test-results
path: test_results.trx

create_nuget_package:
runs-on: ubuntu-latest
Expand Down

0 comments on commit fe2b8c8

Please sign in to comment.