We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3f7641 commit fccc6cdCopy full SHA for fccc6cd
2 files changed
.github/workflows/ci.yaml
@@ -1,6 +1,11 @@
1
name: CI
2
3
-on: [pull_request, workflow_dispatch]
+on:
4
+ pull_request:
5
+ workflow_dispatch:
6
+ push:
7
+ branches:
8
+ - main
9
10
jobs:
11
main:
@@ -26,8 +31,15 @@ jobs:
26
31
- name: Test
27
32
run: make test
28
33
34
+ - name: Archive code coverage results
35
+ uses: actions/upload-artifact@v4
36
+ with:
37
+ name: code-coverage
38
+ path: coverage.out
39
+
29
40
config:
30
41
name: Check GoReleaser config
42
+ if: github.event_name == 'pull_request'
43
runs-on: ubuntu-latest
44
steps:
45
- name: Checkout
Makefile
@@ -25,7 +25,7 @@ lint: lint-golangci-lint lint-yamllint
25
# Test
test:
@echo ">> Running tests for the CLI application"
- @go test ./... -count=1
+ @go test ./... -count=1 -coverprofile=coverage.out
# Test coverage
coverage:
0 commit comments