parsimony/.forgejo/workflows/ci.yaml
tgiachi 7ba07501c3 chore: Go 1.27.3, GPL-3.0-or-later licence, lint and vulnerability checks
- Require Go 1.27.3: fixes the standard library vulnerabilities govulncheck reported
- Add the GPLv3 text and the licence note
- Move shadcn to devDependencies: npm audit finds nothing in production dependencies
- Add make lint (staticcheck) to go-ci and a separate vuln job in CI
- Fix the staticcheck warning in a test
2026-11-09 20:18:57 +01:00

32 lines
758 B
YAML

# Runs on Forgejo Actions (Codeberg). Enable Actions in the repository settings and make sure
# a runner with the `docker` label is available; change `runs-on` if yours is named differently.
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
go:
runs-on: docker
container: golang:1.27
steps:
- uses: actions/checkout@v4
- run: make go-ci
admin:
runs-on: docker
container: node:24
steps:
- uses: actions/checkout@v4
- run: make admin-ci
# Separate job: a vulnerability published tomorrow must not make an unrelated change look broken,
# but it should be visible.
vuln:
runs-on: docker
container: golang:1.27
steps:
- uses: actions/checkout@v4
- run: make vuln