From 529e944056077a389bfb85ae3a748831ba345cff Mon Sep 17 00:00:00 2001 From: Winston Duarte <199336609+protomolequle@users.noreply.github.com> Date: Mon, 17 Feb 2025 03:59:56 +0000 Subject: [PATCH] feat: update actions workflow to support newer go versions --- .github/workflows/test.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e3c532a..8f7bb7e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,15 +6,27 @@ on: jobs: test: + name: Setup environment runs-on: ubuntu-latest + strategy: + matrix: + go-version: ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21", "1.22", "1.23", "1.24"] + outputs: + cache-key: ${{ steps.cache-setup.outputs.cache-key }} steps: - - name: checkout - uses: actions/checkout@v2 - - name: setup - uses: actions/setup-go@v2 + - name: Checkout code + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Set up Go + id: go-setup + uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: - go-version: "1.16" + go-version: ${{ matrix.go-version }} + check-latest: true + cache-dependency-path: "**/*.sum" + - name: lint run: make lint + - name: test run: make test