Skip to content

perf(render): Add npm prune --omit=dev to render.yaml buildCommand to… #14

perf(render): Add npm prune --omit=dev to render.yaml buildCommand to…

perf(render): Add npm prune --omit=dev to render.yaml buildCommand to… #14

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
test:
name: Lint & Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Rebuild native C++ addons
run: npm rebuild better-sqlite3
- name: Run ESLint
run: npm run lint
- name: Run test suite
run: npm test
env:
# Use dummy keys so tests that check for env vars don't fail
GEMINI_API_KEY: test_key_placeholder
GROQ_API_KEY: test_key_placeholder
JWT_SECRET: test_jwt_secret_for_ci_only_not_real
security:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: npm
- run: npm ci
- name: Audit for high/critical vulnerabilities
run: npm audit --audit-level=high