Add Codecov to CI Pipeline
This commit is contained in:
parent
7d29514b6c
commit
9f411e097c
1 changed files with 8 additions and 2 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.22.2
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.22.2
|
||||||
./bin/golangci-lint run -v ./...
|
./bin/golangci-lint run -v ./...
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test (go test)
|
name: Test (go test)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -39,4 +39,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: '1.13'
|
go-version: '1.13'
|
||||||
- name: go test
|
- name: go test
|
||||||
run: go test ./...
|
run: go test -race -coverprofile=coverage.txt ./...
|
||||||
|
- name: upload to codecov
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
file: ./coverage.txt
|
||||||
|
fail_ci_if_error: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue