From aaec62fd3a9f15ec8518f5e8bfb78a2491c0aa90 Mon Sep 17 00:00:00 2001 From: saji Date: Wed, 28 Feb 2024 14:17:47 -0600 Subject: [PATCH] support 1.21, add matrix for 1.21 and 1.22 in CI --- .github/workflows/go.yml | 8 ++++---- go.mod | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 789f4c9..2f3d8ad 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/go.mod b/go.mod index 672a032..1ddbcaa 100644 --- a/go.mod +++ b/go.mod @@ -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