ci: Bump tag-release golangci-lint to v8
CI / Build (pull_request) Successful in 39s
CI / Lint (pull_request) Successful in 48s
CI / Test (pull_request) Successful in 1m7s

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:
s1d3sw1ped_bot
2026-09-02 02:22:16 +00:00
parent d252e8e8d9
commit 5e4a10c573
2 changed files with 53 additions and 2 deletions
+4 -2
View File
@@ -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
+49
View File
@@ -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