support 1.21, add matrix for 1.21 and 1.22 in CI
All checks were successful
Go / build (1.22) (push) Successful in 1m16s
Go / build (1.21) (push) Successful in 2m30s

This commit is contained in:
saji 2024-02-28 14:17:47 -06:00
parent 3de6bfd7d3
commit aaec62fd3a
2 changed files with 5 additions and 5 deletions

View file

@ -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

2
go.mod
View file

@ -1,6 +1,6 @@
module github.com/kschamplin/gotelem
go 1.22
go 1.21
require (
github.com/go-chi/chi/v5 v5.0.12