File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -3,37 +3,39 @@ A github action which annotates failed tests.
3
3
4
4
![ GitHub Annotations] ( ./static/example.png )
5
5
6
+ An example run can be found [ here] ( https://github.com/guyarb/golang-test-annotations-example/actions/runs/505258482 )
7
+
6
8
## How to use
7
9
8
10
Add to your workflow the following contents:
9
11
10
12
``` yaml
11
- name : workflow
13
+ name : pr
12
14
13
15
on :
14
- push :
15
- branches : [ '**' ]
16
16
pull_request :
17
17
branches : [ '**' ]
18
+ workflow_dispatch :
19
+ branches : [ '**' ]
18
20
19
21
jobs :
20
22
full_ci :
23
+ strategy :
24
+ matrix :
25
+ go-version : [ 1.14.x ]
26
+
21
27
runs-on : ubuntu-18.04
22
28
23
29
steps :
24
- - name : checkout
30
+ - name : checkout
25
31
uses : actions/checkout@v2
26
32
27
- - uses : actions/setup-go@v2
28
- with :
29
- go-version : ' 1.14'
30
-
31
33
- name : run tests
32
34
run : go test -json ./... > test.json
33
35
34
- - name : annotate tests
36
+ - name : Annotate tests
35
37
if : always()
36
- uses : guyarb/golang-test-annotations @v0.3.0
38
+ uses : guyarb/golang-test-annoations @v0.3.0
37
39
with :
38
40
test-results : test.json
39
41
` ` `
You can’t perform that action at this time.
0 commit comments