multi: use Go 1.24.10 and golang-cli lint action

This commit is contained in:
Oli 2025-11-15 15:03:27 +01:00
parent f427d66243
commit e90dd3df2a
No known key found for this signature in database
GPG key ID: 8E4256593F177720
3 changed files with 18 additions and 17 deletions

View file

@ -8,12 +8,18 @@ on:
branches:
- "*"
concurrency:
# Cancel any previous workflows if they are from a PR or push.
group: ${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
GO_VERSION: 1.23.9
GO_VERSION: 1.24.10
LINT_VERSION: v2.6.2
jobs:
########################
@ -28,18 +34,15 @@ jobs:
with:
fetch-depth: 0
- name: create linter cache directory
run: mkdir -p /tmp/go-lint-cache
- name: linter cache
uses: actions/cache@v4
- name: setup go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
with:
path: |
/tmp/go-lint-cache
key: ${{ runner.os }}-go-${{ env.GO_VERSION }}-linter-${{ hashFiles('**/go.sum') }}
go-version: '${{ env.GO_VERSION }}'
- name: lint
run: make lint
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: '${{ env.LINT_VERSION }}'
########################
# run unit tests