Skip to content

Commit a8bfd0a

Browse files
committed
ci: coverage
1 parent 1de2604 commit a8bfd0a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/go.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ jobs:
2727
- name: Test
2828
run: go test -v ./...
2929

30+
- name: Coverage
31+
run: go test -coverprofile=coverage.txt
32+
33+
- name: "Upload coverage reports to Codecov"
34+
uses: codecov/codecov-action@v5
35+
with:
36+
token: 4ef16850-a806-4e2d-9f53-b00829214503
37+
slug: VarusHsu/excelorm
38+
3039
lint:
3140
runs-on: ubuntu-latest
3241
steps:
@@ -42,4 +51,5 @@ jobs:
4251
uses: golangci/golangci-lint-action@v6
4352
with:
4453
version: v1.61.0
45-
args: --verbose
54+
args: --verbose
55+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
22
*.xlsx
3+
coverage.txt

0 commit comments

Comments
 (0)