cleanup: define required Go version just once (#861)
See https://github.com/ooni/probe/issues/2217
This commit is contained in:
parent
6a0ae5c70b
commit
3cc2ce0b81
22 changed files with 169 additions and 57 deletions
18
.github/workflows/coverage.yml
vendored
18
.github/workflows/coverage.yml
vendored
|
|
@ -10,17 +10,21 @@ on:
|
|||
jobs:
|
||||
measure_coverage:
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
go:
|
||||
- "1.18.3"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Get GOVERSION content
|
||||
id: goversion
|
||||
run: echo ::set-output name=version::$(cat GOVERSION)
|
||||
|
||||
- uses: magnetikonline/action-golang-cache@v2
|
||||
with:
|
||||
go-version: "${{ matrix.go }}"
|
||||
cache-key-suffix: "-coverage-${{ matrix.go }}"
|
||||
- uses: actions/checkout@v2
|
||||
go-version: "${{ steps.goversion.outputs.version }}"
|
||||
cache-key-suffix: "-coverage-${{ steps.goversion.outputs.version }}"
|
||||
|
||||
- run: go test -short -race -tags shaping -coverprofile=probe-cli.cov ./...
|
||||
|
||||
- uses: shogo82148/actions-goveralls@v1
|
||||
with:
|
||||
path-to-profile: probe-cli.cov
|
||||
|
|
|
|||
Loading…
Reference in a new issue