chore: use oldstable and stable alias a Go version #70
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
on: [push, pull_request] | |
name: Test | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [oldstable, stable] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v3 | |
- run: go test ./... | |
- run: go test -race ./... | |
# Static checks from this point forward. Only run on one Go version and on | |
# Linux, since it's the fastest platform, and the tools behave the same. | |
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == 'stable' | |
run: diff <(echo -n) <(gofmt -s -d .) | |
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == 'stable' | |
run: go vet ./... |