ci: Bump tag-release golangci-lint to v8
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,7 +65,10 @@ jobs:
|
|||||||
|
|
||||||
release:
|
release:
|
||||||
name: Build versioned release
|
name: Build versioned release
|
||||||
|
needs: [lint, test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -116,9 +120,10 @@ jobs:
|
|||||||
name: swiped-mod-switcher-${{github.ref_name}}-${{github.run_number}}
|
name: swiped-mod-switcher-${{github.ref_name}}-${{github.run_number}}
|
||||||
path: bin/
|
path: bin/
|
||||||
|
|
||||||
|
# Prefer built-in job token (Eva): gitea-release-action@v1 defaults to
|
||||||
|
# github.token / GITEA_TOKEN — no RELEASE_TOKEN / GIT_PACKAGES_TOKEN.
|
||||||
- name: Release binaries
|
- name: Release binaries
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
bin/**
|
bin/**
|
||||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
|
||||||
|
|||||||
@@ -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