Skip to content

Commit

Permalink
Add codecov integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikKalkoken committed Dec 16, 2024
1 parent 678de0d commit d1e4936
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,16 @@ jobs:
sudo apt-get update
sudo apt-get install gcc libgl1-mesa-dev xorg-dev
- name: Build
run: go build -v ./...
- name: Install dependencies
run: go mod download

- name: Test
run: go test -v ./...
run: go test -coverprofile=coverage.txt

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

package_linux:
if: startsWith(github.ref, 'refs/tags/')
Expand Down
11 changes: 11 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ignore:
- "internal/app/ui"
- "tools"
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true

0 comments on commit d1e4936

Please sign in to comment.