mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2026-10-25 02:46:11 +00:00
golangci-lint-action >= v7 rejects golangci-lint v1, so the Lint step failed before installing. Move to golangci-lint v2.14.0 and add a v2 config that keeps the default exclusions v1 applied implicitly. Fix the one new staticcheck QF1008 finding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
680 B
YAML
30 lines
680 B
YAML
name: Pull Request
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
integrate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
|
with:
|
|
go-version-file: "go.mod"
|
|
|
|
- name: Build and test
|
|
run: |
|
|
go build -v ./...
|
|
go test -v ./...
|
|
|
|
- name: Lint
|
|
uses: golangci/golangci-lint-action@d583c34f0599d37dbac4a198b9c83201be380893 # v9.3.0
|
|
with:
|
|
version: v2.14.0
|