Skip to content

Commit d9a45af

Browse files
ci: install codecov coverage uploads (Tier-2 quality) (#15)
Free unlimited for public repos. Surfaces coverage delta in PR comments. No account / token needed for public repo uploads. Co-authored-by: Manas Srivastava <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 44a694f commit d9a45af

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: coverage
2+
3+
on:
4+
pull_request:
5+
branches: [master, main]
6+
push:
7+
branches: [master, main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
coverage:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
path: provisioner
20+
- uses: actions/checkout@v4
21+
with:
22+
repository: InstaNode-dev/common
23+
path: common
24+
continue-on-error: true
25+
- uses: actions/checkout@v4
26+
with:
27+
repository: InstaNode-dev/proto
28+
path: proto
29+
continue-on-error: true
30+
- uses: actions/setup-go@v5
31+
with:
32+
go-version-file: provisioner/go.mod
33+
- name: Generate coverage
34+
working-directory: provisioner
35+
run: go test ./... -short -coverprofile=coverage.out -covermode=atomic || true
36+
- uses: codecov/codecov-action@v4
37+
with:
38+
files: provisioner/coverage.out
39+
flags: provisioner
40+
fail_ci_if_error: false

0 commit comments

Comments
 (0)