mirror of
https://github.com/guggero/chantools.git
synced 2026-08-13 12:33:34 +02:00
multi: use Go 1.24.10 and golang-cli lint action
This commit is contained in:
parent
f427d66243
commit
e90dd3df2a
3 changed files with 18 additions and 17 deletions
25
.github/workflows/main.yml
vendored
25
.github/workflows/main.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue