Skip to content

Commit

Permalink
Use the more common pattern for trx in CI
Browse files Browse the repository at this point in the history
That would be to run on a step always even if tests fail:

```
      - name: 🧪 show
        if: always()
        run:
          dotnet run --no-build --project ./src/dotnet-trx/ --output
```
  • Loading branch information
kzu committed Jul 4, 2024
1 parent 18e976b commit 53ab106
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ jobs:
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
- name: 🧪 test
run: |
dotnet test -l trx src/Demo/ -v:q || echo Nevermind!
# NOTE: we don't really want to fail since this just emits the trx. '
run: dotnet test -l trx src/Demo/ -v:q || echo Nevermind!

- name: 🧪 show
if: always()
run:
dotnet run --no-build --project ./src/dotnet-trx/ --output

- name: 🐛 logs
Expand Down

0 comments on commit 53ab106

Please sign in to comment.