parent
e611bf2ac4
commit
92ac9c2b03
|
@ -12,17 +12,17 @@ jobs:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ^1.15
|
go-version: ^1.15
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: make build
|
run: make build
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: make test
|
run: make test-with-coverage
|
||||||
|
- uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
files: coverage.out
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -27,3 +27,6 @@ clean:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test -tags=unit -timeout=600s -v ./...
|
go test -tags=unit -timeout=600s -v ./...
|
||||||
|
|
||||||
|
test-with-coverage:
|
||||||
|
go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
codecov:
|
||||||
|
require_ci_to_pass: no
|
||||||
|
|
||||||
|
comment: false
|
Loading…
Reference in New Issue