cleanup: define required Go version just once (#861)

See https://github.com/ooni/probe/issues/2217
This commit is contained in:
Simone Basso 2022-08-17 11:39:38 +02:00 committed by GitHub
commit 3cc2ce0b81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 169 additions and 57 deletions

View file

@ -14,14 +14,20 @@ jobs:
runs-on: "${{ matrix.os }}"
strategy:
matrix:
go: [ "1.18.3" ]
os: [ "ubuntu-20.04", "windows-2019", "macos-10.15" ]
steps:
- uses: actions/checkout@v2
- name: Get GOVERSION content
id: goversion
run: echo ::set-output name=version::$(cat GOVERSION)
shell: bash
- 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 }}"
# The first test compiles and links against libc and uses getaddrinfo
- run: go test -race ./internal/netxlite/...