fix(ci): security-gate auto-installs frontend deps if vitest missing
Instead of skipping the frontend test when vitest is not installed, security-gate.sh now runs `npm ci -w frontend` automatically. Also add `cache: "npm"` to security-gate's actions/setup-node so the npm cache from the frontend-tests job is reused — prevents OOM on the 1GB VPS (cache restore is disk-only, not 300MB download). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
b0864a59d7
commit
f6cc723bf4
@@ -66,6 +66,8 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "20"
|
||||
cache: "npm"
|
||||
cache-dependency-path: AINative_OKR_CASAN5/package-lock.json
|
||||
|
||||
- name: Install test tools
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user