Skip to content

Commit

Permalink
Create codecov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maier authored Dec 6, 2023
1 parent 687795d commit 4fb7e80
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflow/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test and coverage

on:
pull_request:
branches: ['v3']

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run coverage
run: go test ./... -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
if: success() || failure()
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: ./coverage.out
move_coverage_to_trash: true

0 comments on commit 4fb7e80

Please sign in to comment.