Bump golang from 1.21.1-alpine to 1.21.2-alpine #1596
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 | |
on: [push] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.21.x] | |
platform: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Environment information | |
run: | | |
uname -a | |
go version | |
go env | |
- name: Vet | |
if: matrix.platform == 'ubuntu-latest' | |
run: go vet -v ./... | |
- name: Lint | |
if: matrix.platform == 'ubuntu-latest' | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
go install golang.org/x/lint/golint@latest | |
golint -set_exit_status ./... | |
- name: staticcheck.io | |
if: matrix.platform == 'ubuntu-latest' | |
uses: dominikh/[email protected] | |
with: | |
install-go: false | |
- name: gofumpt formatting | |
if: matrix.platform == 'ubuntu-latest' | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
go install mvdan.cc/gofumpt@latest | |
gofumpt -d . | |
[ -z "$(gofumpt -l .)" ] | |
- name: Test | |
run: go test -count=1 ./... | |
- name: Test with -race | |
run: go test -race -count=1 ./... |