Revert "Add Unit Test Coverage to CI (#3494)" (#3499)

This reverts commit 216b3beaef.
This commit is contained in:
Derek Nola 2021-06-23 12:40:13 -07:00 committed by GitHub
parent 216b3beaef
commit cf55712767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 33 deletions

View File

@ -1,9 +0,0 @@
coverage:
status:
project:
default: false # disable the default status that measures entire project
pkg: # declare a new status context "pkg"
paths:
- pkg/* # only include coverage in "pkg/" folder
informational: true # Always pass check
patch: off # disable the commit only checks

View File

@ -1,24 +0,0 @@
name: Unit Test Coverage
on: [push, pull_request]
jobs:
test:
name: Unit Tests
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- name: Install Go
uses: actions/setup-go@v2
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Run Unit Tests
run: |
go test ./pkg/... -coverprofile coverage.out
go tool cover -func coverage.out
- name: Upload Results To Codecov
uses: codecov/codecov-action@v1
with:
files: ./coverage.out
flags: unittests # optional
verbose: true # optional (default = false)

View File

@ -32,3 +32,5 @@ if [ -n "$DIRTY" ]; then
git diff
exit 1
fi
"${GO}" test -v ./pkg/...