Skip to content

Commit

Permalink
chore: Update dotnetcore.yml workflow to use dotnet version 8.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Puchaczov committed Jun 21, 2024
1 parent ed68824 commit 3608be7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:
ref: ${{ github.ref }}
- name: Build & Run tests
run: dotnet test --configuration Release --logger "trx;LogFileName=test-results.trx"
- name: Parse TRX results
- name: Install trx2junit
run: dotnet tool install -g trx2junit
- name: Convert TRX to JUnit
run: |
~/.dotnet/tools/trx2junit test-results.trx --output test-results.xml
- name: Parse test results
id: parse
run: |
mkdir -p test-results
dotnet tool install -g trx2junit
export PATH="$PATH:~/.dotnet/tools"
trx2junit test-results.trx --output test-results.xml
total=$(grep -oP 'tests="\K[0-9]+' test-results.xml)
passed=$(grep -oP 'passed="\K[0-9]+' test-results.xml)
failed=$(grep -oP 'failed="\K[0-9]+' test-results.xml)
Expand Down

0 comments on commit 3608be7

Please sign in to comment.