Files
Adam Shiervani db4452d0bb ci: redesign workflows into lint + build (#1330)
Replace 5 workflow files with 2 clean ones:

- lint.yml: Go lint and UI lint as parallel jobs with consistent
  push + pull_request triggers (fixes fork PRs never getting UI lint)
- build.yml: stripped to compile + test only, with pull_request
  trigger added (PRs now get build feedback before merge)

Removed:
- stale-issues.yml (permanent dry-run no-op)
- smoketest.yml (frequently failing device tests)
- dependabot.yml (automated dependency bumps)
- golangci-lint.yml (folded into lint.yml)
- ui-lint.yml (folded into lint.yml)

Also fixed build.yml cache restore-keys to use a proper prefix
fallback instead of duplicating the full key.
2026-03-25 18:44:34 +01:00

42 lines
857 B
YAML

name: lint
on:
push:
branches: [dev, main]
pull_request:
permissions:
contents: read
jobs:
go:
name: Go
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: "^1.25.1"
- run: mkdir -p static && touch static/.gitkeep
- uses: golangci/golangci-lint-action@v8
with:
args: --verbose
version: v2.4
ui:
name: UI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: "22"
cache: npm
cache-dependency-path: "**/package-lock.json"
- run: npm ci
working-directory: ui
- run: npm run lint
working-directory: ui