File tree Expand file tree Collapse file tree 2 files changed +45
-25
lines changed Expand file tree Collapse file tree 2 files changed +45
-25
lines changed Original file line number Diff line number Diff line change 1
1
name : main
2
2
on :
3
- pull_request :
4
- branches :
5
- - main
6
3
push :
7
4
branches :
8
5
- main
9
6
10
7
env :
11
- GO_VERSION : 1.21.3
8
+ GO_VERSION : 1.22.2
12
9
13
10
jobs :
14
11
test :
22
19
fetch-depth : 0
23
20
- name : test
24
21
run : |
25
- echo '```' > results.comment
26
- echo "$ make test" >> results.comment
27
- make test 2>&1 | tee test.out
28
- cat test.out | tail -20 >> results.comment
29
- echo "-----" >> results.comment
30
-
31
- - name : test-race
32
- run : |
33
- make test-race
34
- - name : bench
35
- run : |
36
- echo "$ make bench" >> results.comment
37
- make bench 2>&1 | tee bench.out
38
- cat bench.out >> results.comment
39
- echo '```' >> results.comment
40
-
41
- - name : results
42
- uses : thollander/actions-comment-pull-request@v2
43
- with :
44
- comment_tag : results
45
- filePath : results.comment
22
+ make all
46
23
Original file line number Diff line number Diff line change
1
+ name : pr
2
+ on :
3
+ pull_request :
4
+ branches :
5
+ - main
6
+
7
+ env :
8
+ GO_VERSION : 1.22.2
9
+
10
+ jobs :
11
+ test :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/setup-go@v2
15
+ with :
16
+ go-version : ${{ env.GO_VERSION }}
17
+ - uses : actions/checkout@v3
18
+ with :
19
+ fetch-depth : 0
20
+ - name : test
21
+ run : |
22
+ echo '```' > results.comment
23
+ echo "$ make test" >> results.comment
24
+ make test 2>&1 | tee test.out
25
+ cat test.out | tail -20 >> results.comment
26
+ echo "-----" >> results.comment
27
+
28
+ - name : test-race
29
+ run : |
30
+ make test-race
31
+ - name : bench
32
+ run : |
33
+ echo "$ make bench" >> results.comment
34
+ make bench 2>&1 | tee bench.out
35
+ cat bench.out >> results.comment
36
+ echo '```' >> results.comment
37
+
38
+ - name : results
39
+ uses : thollander/actions-comment-pull-request@v2
40
+ with :
41
+ comment_tag : results
42
+ filePath : results.comment
43
+
You can’t perform that action at this time.
0 commit comments