Add test failure annotations on v1.8+ (#58)

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
This commit is contained in:
Eric Hanson
2022-08-04 12:34:44 +02:00
committed by GitHub
parent 101f621257
commit 7ea3b3e0bd
7 changed files with 277 additions and 3 deletions

View File

@@ -33,10 +33,14 @@ jobs:
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
annotate: true
```
You can add this workflow to your repository by placing it in a file called `test.yml` in the folder `.github/workflows/`. [More info here](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions).
Here, setting `annotate: true` causes GitHub "annotations" to appear when reviewing the PR, pointing to failing tests, if any.
By default, `annotate` is set to false, but that may change in future releases of this action.
### Prefixing the Julia command
In some packages, you may want to prefix the `julia` command with another command, e.g. for running tests of certain graphical libraries with `xvfb-run`.