From d845b12829e300465aaa0f5aa65b65bbba03aad1 Mon Sep 17 00:00:00 2001 From: cpanato Date: Wed, 22 May 2024 19:02:40 +0200 Subject: [PATCH] update ci actions and test with supported go versions Signed-off-by: cpanato --- .github/workflows/go.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a211a85..cc97b61 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,14 +10,20 @@ jobs: build: name: Build runs-on: ubuntu-latest + + strategy: + matrix: + go-version: ['1.21', '1.22'] + steps: - - name: Set up Go 1.17 - uses: actions/setup-go@v2 + - name: Set up Go ${{ matrix.go-version }} + uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: - go-version: 1.17 + go-version: ${{ matrix.go-version }} + check-latest: true - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Get dependencies run: go get -v -t -d ./...