A github action which annotates failed tests.
An example run can be found here
Add to your workflow the following contents:
name: pr
on:
pull_request:
branches: [ '**' ]
workflow_dispatch:
branches: [ '**' ]
jobs:
full_ci:
strategy:
matrix:
go-version: [ 1.14.x ]
runs-on: ubuntu-18.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: run tests
run: go test -json ./... > test.json
- name: Annotate tests
if: always()
uses: guyarb/[email protected]
with:
test-results: test.json
package-name: foobar # optional, if using custom package name, github.com/owner/repo stripped from the pathname by default
- Fork this repo.
- Create a branch with your feature/bugfix.
- Open a PR to me.
Please open issues for any bug or suggestion you have.