Skip to content

Update actions workflow to support newer go versions #161

Update actions workflow to support newer go versions

Update actions workflow to support newer go versions #161

Workflow file for this run

name: lint and test
on:
push:
pull_request:
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 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: ${{ matrix.go-version }}
check-latest: true
cache-dependency-path: "**/*.sum"
- name: lint
run: make lint
- name: test
run: make test