Skip to content

Commit

Permalink
Create codecov.yml to enforce 100% (#95)
Browse files Browse the repository at this point in the history
Create codecov.yml to enforce 100%
  • Loading branch information
cinar committed Jun 22, 2023
1 parent c8d1f5f commit 144cab8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 31 deletions.
6 changes: 6 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
target: 100%
threshold: 0%
8 changes: 2 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,10 @@ jobs:
run: go build -v ./...

- name: Go test
run: go test -v -coverprofile=coverage.out ./...
run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Go coverage
env:
CODE_COVERAGE_THRESHOLD: 100
run: ./scripts/coverage.sh

25 changes: 0 additions & 25 deletions scripts/coverage.sh

This file was deleted.

0 comments on commit 144cab8

Please sign in to comment.