mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
This reverts commit 216b3beaef
.
This commit is contained in:
parent
216b3beaef
commit
cf55712767
9
.github/.codecov.yml
vendored
9
.github/.codecov.yml
vendored
@ -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
|
24
.github/workflows/unitcoverage.yaml
vendored
24
.github/workflows/unitcoverage.yaml
vendored
@ -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)
|
@ -32,3 +32,5 @@ if [ -n "$DIRTY" ]; then
|
||||
git diff
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"${GO}" test -v ./pkg/...
|
||||
|
Loading…
Reference in New Issue
Block a user