Skip to content

Commit

Permalink
Reduce example yaml boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Mar 10, 2025
1 parent 80dd47c commit d568380
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ Use this for ![macOS](misc/badge-macos.svg) (e.g. `runs-on: macos-latest`) runne
uses: EnricoMi/publish-unit-test-result-action/macos@v2
if: always()
with:
files: |
test-results/**/*.xml
test-results/**/*.trx
test-results/**/*.json
files: …
```

… and ![Windows](misc/badge-windows.svg) (e.g. `runs-on: windows-latest`) runners (no Docker needed):
Expand All @@ -54,10 +51,7 @@ Use this for ![macOS](misc/badge-macos.svg) (e.g. `runs-on: macos-latest`) runne
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: always()
with:
files: |
test-results\**\*.xml
test-results\**\*.trx
test-results\**\*.json
files: …
```

For Windows **without PowerShell** installed, there is the Bash shell variant:
Expand All @@ -66,10 +60,7 @@ For Windows **without PowerShell** installed, there is the Bash shell variant:
uses: EnricoMi/publish-unit-test-result-action/windows/bash@v2
if: always()
with:
files: |
test-results\**\*.xml
test-results\**\*.trx
test-results\**\*.json
files: …
```

For **self-hosted** Linux GitHub Actions runners **without Docker** installed, please use:
Expand All @@ -78,10 +69,7 @@ For **self-hosted** Linux GitHub Actions runners **without Docker** installed, p
uses: EnricoMi/publish-unit-test-result-action/linux@v2
if: always()
with:
files: |
test-results/**/*.xml
test-results/**/*.trx
test-results/**/*.json
files: …
```

See the [notes on running this action as a non-Docker action](#running-as-a-non-docker-action).
Expand Down

0 comments on commit d568380

Please sign in to comment.