4 Commits

Author SHA1 Message Date
eva 1d12405956 merge: Sync develop with master (#37)
CI / Build (push) Successful in 56s
CI / Lint (push) Successful in 47s
CI / Test (push) Successful in 1m16s
Release versioned tag / Lint (push) Successful in 43s
Release versioned tag / Test (push) Successful in 1m3s
Release versioned tag / Build versioned release (push) Successful in 1m57s
merge: Sync develop with master (#37)
2026-09-02 13:41:20 -05:00
s1d3sw1ped_bot 23287c7c6c ci: Bump tag-release golangci-lint to v8
CI / Build (push) Successful in 36s
CI / Lint (push) Successful in 49s
CI / Test (push) Successful in 1m10s
Release versioned tag / Lint (push) Successful in 35s
Release versioned tag / Test (push) Successful in 59s
Release versioned tag / Build versioned release (push) Successful in 1m52s
CI / Lint (pull_request) Successful in 42s
CI / Build (pull_request) Successful in 53s
CI / Test (pull_request) Successful in 1m3s
Align tag Lint with push-ci for Go 1.27; gate release on lint+test; gitea-release-action job token.
2026-09-01 21:32:30 -05:00
s1d3sw1ped_bot 5b2affec8d ci: Bump tag-release golangci-lint to v8
CI / Build (pull_request) Successful in 38s
CI / Lint (pull_request) Successful in 42s
CI / Test (pull_request) Successful in 59s
2026-09-02 02:23:24 +00:00
s1d3sw1ped_bot 74f7212d1e docs: Add CONTRIBUTING.md
CI / Test (push) Successful in 1m26s
CI / Build (push) Successful in 2m49s
CI / Lint (push) Successful in 4m28s
Contributors need a short guide for develop-targeted PRs, commit
subject form, and Gitea issue-closing rules.
2026-09-01 13:36:58 -05:00
2 changed files with 58 additions and 4 deletions
+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