feat: add Gitea Actions CI for make check (closes #96)
Some checks failed
check / check (pull_request) Failing after 16s
Some checks failed
check / check (pull_request) Failing after 16s
- Add .gitea/workflows/check.yml running make check on PRs and pushes to main - Fix .golangci.yml for golangci-lint v2 config format (was using v1 keys) - Migrate linters-settings to linters.settings, remove deprecated exclude-use-default - Exclude gosec false positives (G117, G703, G704, G705) with documented rationale - Increase lll line-length from 88 to 120 (88 was too restrictive for idiomatic Go) - Increase dupl threshold from 100 to 150 (similar CRUD handlers are intentional) - Fix funcorder: move RemoveImage before unexported methods in docker/client.go - Fix wsl_v5: add required blank line in deploy.go - Fix revive unused-parameter in export_test.go - Fix gosec G306: tighten test file permissions to 0600 - Add html.EscapeString for log output, filepath.Clean for log path - Remove stale //nolint:funlen directives no longer needed with v2 config
This commit is contained in:
20
.gitea/workflows/check.yml
Normal file
20
.gitea/workflows/check.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
name: check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: golang:1.25
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install golangci-lint
|
||||
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||
|
||||
- name: Run make check
|
||||
run: make check
|
||||
Reference in New Issue
Block a user