You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
-`bashunit::spy` accepts an optional exit code or custom implementation function (#600)
7
7
- Assert functions accept an optional trailing label to override the failure title (#77)
8
8
-`--fail-on-risky` flag and `BASHUNIT_FAIL_ON_RISKY` env var treat no-assertion tests as failures (#115)
9
+
-`--log-gha <file>` flag and `BASHUNIT_LOG_GHA` env var emit GitHub Actions workflow commands so failed, risky and incomplete tests show up as inline PR annotations (#280)
9
10
10
11
### Changed
11
12
- Parallel test execution is now enabled on Alpine Linux (#370)
|`-j, --jobs <N>`| Run tests in parallel with max N concurrent jobs |
66
67
|`-p, --parallel`| Run tests in parallel |
67
68
|`--no-parallel`| Run tests sequentially |
@@ -358,8 +359,13 @@ bashunit test tests/ --log-junit results.xml
358
359
```bash [HTML Report]
359
360
bashunit test tests/ --report-html report.html
360
361
```
362
+
```bash [GitHub Actions]
363
+
bashunit test tests/ --log-gha gha.log && cat gha.log
364
+
```
361
365
:::
362
366
367
+
The `--log-gha` flag writes GitHub Actions workflow commands (`::error`, `::warning`, `::notice`) for failed, risky and incomplete tests. When streamed to stdout on a runner, they appear as inline annotations in the "Files changed" tab of a pull request.
Write GitHub Actions workflow commands (`::error`, `::warning`, `::notice`) to the given file, so failed, risky and incomplete tests show up as inline annotations in the "Files changed" tab of a pull request.
239
+
240
+
On a CI runner, stream the generated file to stdout so GitHub parses it:
0 commit comments