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
|
name: Go
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
@ -11,13 +8,16 @@ jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go-version: ['1.21', '1.22']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: ${{ matrix.go-version }}
|
||||||
- name: Install Staticcheck
|
- name: Install Staticcheck
|
||||||
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
Loading…
Reference in a new issue