Compare commits

..

2 commits

3 changed files with 13 additions and 4 deletions

View file

@ -6,6 +6,9 @@ on:
pull_request: pull_request:
branches: [master] branches: [master]
env:
GOLANGCI_LINT_VERSION: v2.8.0
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -18,10 +21,16 @@ jobs:
go-version: '1.26' go-version: '1.26'
cache: true cache: true
- name: Cache Go tools
uses: actions/cache@v5
with:
path: ~/go/bin
key: go-tools-${{ runner.os }}-goimports-latest-golangci-lint-${{ env.GOLANGCI_LINT_VERSION }}
- name: Install tools - name: Install tools
run: | run: |
go install golang.org/x/tools/cmd/goimports@latest which goimports || go install golang.org/x/tools/cmd/goimports@latest
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8.0 which golangci-lint || go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@${{ env.GOLANGCI_LINT_VERSION }}
- name: Build - name: Lint & Build
run: make all run: make all

Binary file not shown.

Binary file not shown.