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 2121 - name : install go
2222 uses : actions/setup-go@v5
2323 with :
24- go-version : ${{ matrix.go }}
24+ go-version : ' ${{ matrix.go }}'
25+ check-latest : true
2526
2627 - name : checkout code
2728 uses : actions/checkout@v4
3031 run : make build
3132
3233 - name : Test
33- env :
34- COVERALLS_TOKEN : ${{ secrets.COVERALLS_TOKEN }}
3534 run : |
3635 make cover
3736
4342 parallel : true
4443
4544 - name : Upload coverage
46- if : (matrix.go == '1.23')
4745 uses : actions/upload-artifact@v4
4846 with :
49- name : coverage
47+ name : coverage.${{ matrix.go }}
5048 path : coverage.*
5149
5250 - name : Assert no changes
Original file line number Diff line number Diff line change 1616/bin
1717/coverage
1818vendor /
19- coverage.out
20- coverage.html
19+ coverage. *
2120
2221dist /
23- .idea /
22+ .idea /
23+ .DS_Store
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ COVERAGEDIR= coverage
1010SERVICE =local
1111
1212ifdef GITHUB_ACTIONS
13- SERVICE =github-actions
13+ SERVICE =github
1414endif
1515
1616DATE := $(shell date -u '+% FT% T% z')
@@ -53,7 +53,8 @@ test: gen-test generate
5353 $(GO ) test -v -race -shuffle on --tags=example ./example
5454
5555cover : 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
5758
5859tc : test cover
5960coveralls : $(GOVERALLS )
You can’t perform that action at this time.
0 commit comments