Skip to content

Commit d1e4936

Browse files
committed
Add codecov integration
1 parent 678de0d commit d1e4936

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/ci-cd.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,16 @@ jobs:
2828
sudo apt-get update
2929
sudo apt-get install gcc libgl1-mesa-dev xorg-dev
3030
31-
- name: Build
32-
run: go build -v ./...
31+
- name: Install dependencies
32+
run: go mod download
3333

3434
- name: Test
35-
run: go test -v ./...
35+
run: go test -coverprofile=coverage.txt
36+
37+
- name: Upload coverage reports to Codecov
38+
uses: codecov/codecov-action@v5
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}
3641

3742
package_linux:
3843
if: startsWith(github.ref, 'refs/tags/')

codecov.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ignore:
2+
- "internal/app/ui"
3+
- "tools"
4+
coverage:
5+
status:
6+
project:
7+
default:
8+
informational: true
9+
patch:
10+
default:
11+
informational: true

0 commit comments

Comments
 (0)