Skip to content

Commit d459d2c

Browse files
CI. Send report to codecov for dev branch (#1059)
1 parent 0b5a7e1 commit d459d2c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/codecov.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'codecov'
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
go-test:
10+
name: runner / go-test
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v4
15+
with:
16+
go-version: "1.22"
17+
- name: test
18+
run: go test -v ./... -covermode=atomic -coverprofile=cover.out
19+
20+
- name: upload coverage report
21+
uses: codecov/codecov-action@v4
22+
with:
23+
file: cover.out
24+
fail_ci_if_error: false
25+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)