Skip to content

Commit 0c778db

Browse files
committed
Updated readme
1 parent 1f7187d commit 0c778db

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,39 @@ A github action which annotates failed tests.
33

44
![GitHub Annotations](./static/example.png)
55

6+
An example run can be found [here](https://github.com/guyarb/golang-test-annotations-example/actions/runs/505258482)
7+
68
## How to use
79

810
Add to your workflow the following contents:
911

1012
```yaml
11-
name: workflow
13+
name: pr
1214

1315
on:
14-
push:
15-
branches: [ '**' ]
1616
pull_request:
1717
branches: [ '**' ]
18+
workflow_dispatch:
19+
branches: [ '**' ]
1820

1921
jobs:
2022
full_ci:
23+
strategy:
24+
matrix:
25+
go-version: [ 1.14.x ]
26+
2127
runs-on: ubuntu-18.04
2228

2329
steps:
24-
- name : checkout
30+
- name: checkout
2531
uses: actions/checkout@v2
2632

27-
- uses: actions/setup-go@v2
28-
with:
29-
go-version: '1.14'
30-
3133
- name: run tests
3234
run: go test -json ./... > test.json
3335

34-
- name: annotate tests
36+
- name: Annotate tests
3537
if: always()
36-
uses: guyarb/golang-test-annotations@v0.3.0
38+
uses: guyarb/golang-test-annoations@v0.3.0
3739
with:
3840
test-results: test.json
3941
```

static/example.png

22.8 KB
Loading

0 commit comments

Comments
 (0)