Skip to content

Commit

Permalink
add codecov workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
floriscornel committed Jun 9, 2024
1 parent e51f449 commit da64c45
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: test-coverage

on:
push:
branches:
- main
pull_request:


permissions:
contents: read


jobs:
lint:
name: Lint and Format
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "stable"

- name: Run coverage
run: go test -coverprofile=coverage.out -coverpkg=./... ./...

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

0 comments on commit da64c45

Please sign in to comment.