ci: Bump tag-release golangci-lint to v8
Align tag-release Lint with push-ci / PR CI: - golangci/golangci-lint-action@v8 - version: v2.13.2 - args: --timeout=5m Gate the Fyne release job with needs: [lint, test] so a broken lint cannot publish (root cause of tag v1.0.2 overall failure). Add optional .golangci.yml from steamcache2 v2 skeleton (misspell; no steamcache-specific path excludes; no gosec until Rex wants it). Keep Fyne + release-action path; no GoReleaser; no master→main rename. Fixes #34
This commit is contained in:
@@ -28,9 +28,10 @@ jobs:
|
|||||||
run: go mod tidy
|
run: go mod tidy
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v8
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: v2.13.2
|
||||||
|
args: --timeout=5m
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
@@ -64,6 +65,7 @@ jobs:
|
|||||||
|
|
||||||
release:
|
release:
|
||||||
name: Build versioned release
|
name: Build versioned release
|
||||||
|
needs: [lint, test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
# .golangci.yml — SwipedModSwitcher (golangci-lint v2)
|
||||||
|
# Adapted from steamcache2 v2 skeleton; no project-specific path excludes yet.
|
||||||
|
# Run with: golangci-lint run ./...
|
||||||
|
version: "2"
|
||||||
|
|
||||||
|
run:
|
||||||
|
timeout: 5m
|
||||||
|
modules-download-mode: readonly
|
||||||
|
|
||||||
|
linters:
|
||||||
|
# Defaults (errcheck, govet, ineffassign, staticcheck, unused, …) plus:
|
||||||
|
enable:
|
||||||
|
- misspell
|
||||||
|
settings:
|
||||||
|
errcheck:
|
||||||
|
check-type-assertions: false
|
||||||
|
check-blank: false
|
||||||
|
staticcheck:
|
||||||
|
checks:
|
||||||
|
- all
|
||||||
|
- "-ST*"
|
||||||
|
- "-QF*"
|
||||||
|
govet:
|
||||||
|
enable-all: true
|
||||||
|
disable:
|
||||||
|
- fieldalignment
|
||||||
|
- shadow
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
paths:
|
||||||
|
- dist
|
||||||
|
- bin
|
||||||
|
rules:
|
||||||
|
- path: _test\.go
|
||||||
|
linters:
|
||||||
|
- errcheck
|
||||||
|
|
||||||
|
formatters:
|
||||||
|
enable:
|
||||||
|
- goimports
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
paths:
|
||||||
|
- dist
|
||||||
|
- bin
|
||||||
|
|
||||||
|
issues:
|
||||||
|
max-issues-per-linter: 0
|
||||||
|
max-same-issues: 0
|
||||||
Reference in New Issue
Block a user