support 1.21, add matrix for 1.21 and 1.22 in CI
This commit is contained in:
parent
3de6bfd7d3
commit
aaec62fd3a
8
.github/workflows/go.yml
vendored
8
.github/workflows/go.yml
vendored
|
@ -1,6 +1,3 @@
|
|||
# This workflow will build a golang project
|
||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
|
||||
|
||||
name: Go
|
||||
|
||||
on:
|
||||
|
@ -11,13 +8,16 @@ jobs:
|
|||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: ['1.21', '1.22']
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.22'
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Install Staticcheck
|
||||
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||
- name: Build
|
||||
|
|
Loading…
Reference in a new issue