merge: Sync develop with master #37

Merged
eva merged 15 commits from master into develop 2026-09-02 13:41:20 -05:00
2 changed files with 58 additions and 4 deletions
Showing only changes of commit 23287c7c6c - Show all commits
+9 -4
View File
@@ -28,9 +28,10 @@ jobs:
run: go mod tidy
- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v8
with:
version: latest
version: v2.13.2
args: --timeout=5m
test:
name: Test
@@ -64,7 +65,10 @@ jobs:
release:
name: Build versioned release
needs: [lint, test]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -116,9 +120,10 @@ jobs:
name: swiped-mod-switcher-${{github.ref_name}}-${{github.run_number}}
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
uses: https://gitea.com/actions/release-action@main
uses: https://gitea.com/actions/gitea-release-action@v1
with:
files: |-
bin/**
api_key: '${{secrets.RELEASE_TOKEN}}'
+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