2021-05-06 19:56:55 +02:00
|
|
|
# coverage computes the code coverage
|
2021-02-02 12:05:47 +01:00
|
|
|
name: coverage
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
2021-10-22 15:41:53 +02:00
|
|
|
- "release/**"
|
2021-02-02 12:05:47 +01:00
|
|
|
jobs:
|
|
|
|
test:
|
2021-05-06 19:56:55 +02:00
|
|
|
runs-on: ubuntu-20.04
|
2021-02-02 12:05:47 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-10-20 18:16:40 +02:00
|
|
|
go: [ "1.17.2" ]
|
2021-02-02 12:05:47 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: "${{ matrix.go }}"
|
|
|
|
- uses: actions/checkout@v2
|
2021-02-02 15:57:37 +01:00
|
|
|
- run: go test -short -race -tags shaping -coverprofile=probe-cli.cov ./...
|
2021-02-02 12:05:47 +01:00
|
|
|
- uses: shogo82148/actions-goveralls@v1
|
|
|
|
with:
|
2021-02-02 15:57:37 +01:00
|
|
|
path-to-profile: probe-cli.cov
|
2021-02-02 12:05:47 +01:00
|
|
|
parallel: true
|
|
|
|
finish:
|
|
|
|
needs: test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: shogo82148/actions-goveralls@v1
|
|
|
|
with:
|
|
|
|
parallel-finished: true
|