Files
Crussell/.gitea/workflows/ci.yaml
T
popertots c481400215
Frontend Lint & Vulns / Lint & vulns (push) Successful in 1m19s
ci: strip to lint/vulns only, fix Post-step node toolcache
Remove test and race jobs until lint + vulns are fully green.
The node:22-alpine3.21 base image ships node at /usr/local/bin but
actions/setup-node expects it in the toolcache at /opt/hostedtoolcache.
Create a symlink so all Post-action cleanup steps (cache-save) find
node and don't exit 255.
2026-06-25 14:05:57 +01:00

46 lines
1.0 KiB
YAML

name: Frontend Lint & Vulns
description: Runs frontend quality checks and Go vulnerability scanning.
on:
push:
branches:
- main
- develop
pull_request:
jobs:
quality:
name: Lint & vulns
runs-on: ubuntu-latest
defaults:
run:
shell: sh
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
cache: false
- name: Fix node toolcache path for Post-step cleanup
run: |
mkdir -p /opt/hostedtoolcache/node/22.23.1/x64/bin
ln -sf /usr/local/bin/node /opt/hostedtoolcache/node/22.23.1/x64/bin/node
- name: Go vulnerability scan
working-directory: backend
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
- name: Frontend type check
run: |
cd frontend
npm ci
npm run check
- name: Frontend lint
run: |
cd frontend
npm run lint