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