Update libp2p version to 0.32.0, golang to 1.20+ #346
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
go_test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ubuntu", "windows", "macos" ] | |
go: [ "1.20.x", "1.21.x" ] | |
runs-on: ${{ matrix.os }}-latest | |
name: ${{ matrix.os }}, go ${{ matrix.go }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Go information | |
run: | | |
go version | |
go env | |
- name: Run tests | |
uses: protocol/[email protected] | |
with: | |
run: go test -v -coverprofile coverage.txt ./... | |
- name: Run tests (32 bit) | |
if: ${{ matrix.os != 'macos' }} # can't run 32 bit tests on OSX. | |
uses: protocol/[email protected] | |
env: | |
GOARCH: 386 | |
with: | |
run: go test -v ./... | |
- name: Run tests with race detector | |
if: ${{ matrix.os == 'ubuntu' }} # speed things up. Windows and OSX VMs are slow | |
uses: protocol/[email protected] | |
with: | |
run: go test -v -race ./... | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@a1ed4b322b4b38cb846afb5a0ebfa17086917d27 # v1.5.0 | |
with: | |
file: coverage.txt | |
env_vars: OS=${{ matrix.os }}, GO=${{ matrix.go }} |