diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 964759d..81e90cb 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -4,6 +4,7 @@ on: [push, pull_request, create] jobs: build: + name: Build runs-on: ubuntu-latest services: azurite: @@ -20,14 +21,26 @@ jobs: - name: Setup dotnet uses: actions/setup-dotnet@v4 with: - dotnet-version: "7.0.100" + dotnet-version: "7" - name: Install dependencies run: dotnet restore - name: Build run: dotnet build --configuration Release --no-restore - name: Test if: ${{ !env.ACT }} - run: dotnet test --no-restore --no-build --configuration Release AzureBatchQueue.Tests + run: | + dotnet test --no-restore --no-build \ + --configuration Release \ + --logger trx\;LogFileName=/TestResults/AzureBatchQueue.Tests.trx \ + --logger console \ + AzureBatchQueue.Tests + - name: Tests Report + if: success() || failure() + uses: dorny/test-reporter@v1 + with: + name: "Tests" + path: "/TestResults/*.trx" + reporter: "dotnet-trx" - name: Get tag name if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') id: vars