Skip to content

Commit

Permalink
feat: update actions workflow to support newer go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
protomolequle committed Feb 17, 2025
1 parent f288b6c commit 529e944
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 529e944

Please sign in to comment.