ci: split govulncheck and frontend checks into parallel jobs
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: Frontend Lint & Vulns
|
||||
description: Runs frontend quality checks and Go vulnerability scanning.
|
||||
name: Lint & Vuln Scan
|
||||
description: Runs Go vulnerability scanning and frontend quality checks in parallel.
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -8,8 +8,8 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
name: Lint & vulns
|
||||
vulns:
|
||||
name: Go vulnerabilities
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
@@ -33,6 +33,20 @@ jobs:
|
||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
govulncheck ./...
|
||||
|
||||
frontend:
|
||||
name: Frontend lint & types
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: sh
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- 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: Frontend type check
|
||||
run: |
|
||||
cd frontend
|
||||
|
||||
Reference in New Issue
Block a user