File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11name : CI
22
3- on : [pull_request, workflow_dispatch]
3+ on :
4+ pull_request :
5+ workflow_dispatch :
6+ push :
7+ branches :
8+ - main
49
510jobs :
611 main :
2631 - name : Test
2732 run : make test
2833
34+ - name : Archive code coverage results
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : code-coverage
38+ path : coverage.out
39+
2940 config :
3041 name : Check GoReleaser config
42+ if : github.event_name == 'pull_request'
3143 runs-on : ubuntu-latest
3244 steps :
3345 - name : Checkout
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ lint: lint-golangci-lint lint-yamllint
2525# Test
2626test :
2727 @echo " >> Running tests for the CLI application"
28- @go test ./... -count=1
28+ @go test ./... -count=1 -coverprofile=coverage.out
2929
3030# Test coverage
3131coverage :
You can’t perform that action at this time.
0 commit comments