Skip to content

Commit

Permalink
Export test report
Browse files Browse the repository at this point in the history
  • Loading branch information
legigor committed Jan 23, 2024
1 parent ad8c2af commit 289895c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request, create]

jobs:
build:
name: Build
runs-on: ubuntu-latest
services:
azurite:
Expand All @@ -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
Expand Down

0 comments on commit 289895c

Please sign in to comment.