Skip to content

ci: use actions/setup-go@v5 #2

ci: use actions/setup-go@v5

ci: use actions/setup-go@v5 #2

Workflow file for this run

name: Go
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [
'1.22',
'1.21',
]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Display Go version
run: go version
- name: Install dependencies
run: go mod download
- name: Build
run: go build -v ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Test
run: make test