File tree Expand file tree Collapse file tree 4 files changed +951
-10
lines changed Expand file tree Collapse file tree 4 files changed +951
-10
lines changed Original file line number Diff line number Diff line change 21
21
- name : install go
22
22
uses : actions/setup-go@v5
23
23
with :
24
- go-version : ${{ matrix.go }}
24
+ go-version : ' ${{ matrix.go }}'
25
+ check-latest : true
25
26
26
27
- name : checkout code
27
28
uses : actions/checkout@v4
30
31
run : make build
31
32
32
33
- name : Test
33
- env :
34
- COVERALLS_TOKEN : ${{ secrets.COVERALLS_TOKEN }}
35
34
run : |
36
35
make cover
37
36
43
42
parallel : true
44
43
45
44
- name : Upload coverage
46
- if : (matrix.go == '1.23')
47
45
uses : actions/upload-artifact@v4
48
46
with :
49
- name : coverage
47
+ name : coverage.${{ matrix.go }}
50
48
path : coverage.*
51
49
52
50
- name : Assert no changes
Original file line number Diff line number Diff line change 16
16
/bin
17
17
/coverage
18
18
vendor /
19
- coverage.out
20
- coverage.html
19
+ coverage. *
21
20
22
21
dist /
23
- .idea /
22
+ .idea /
23
+ .DS_Store
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ COVERAGEDIR= coverage
10
10
SERVICE =local
11
11
12
12
ifdef GITHUB_ACTIONS
13
- SERVICE =github-actions
13
+ SERVICE =github
14
14
endif
15
15
16
16
DATE := $(shell date -u '+% FT% T% z')
@@ -53,7 +53,8 @@ test: gen-test generate
53
53
$(GO ) test -v -race -shuffle on --tags=example ./example
54
54
55
55
cover : gen-test test
56
- $(GO ) tool cover -html=coverage.out -o coverage.html
56
+ grep -v ' main.go' coverage.out > coverage.cov
57
+ $(GO ) tool cover -html=coverage.cov -o coverage.html
57
58
58
59
tc : test cover
59
60
coveralls : $(GOVERALLS )
You can’t perform that action at this time.
0 commit comments