Skip to content

chore(deps-dev): bump eslint in /trustsignal-reddit-web (#5) #12

chore(deps-dev): bump eslint in /trustsignal-reddit-web (#5)

chore(deps-dev): bump eslint in /trustsignal-reddit-web (#5) #12

Workflow file for this run

name: CI — Web App
on:
push:
branches: [main]
paths:
- 'trustsignal-reddit-web/**'
pull_request:
branches: [main]
paths:
- 'trustsignal-reddit-web/**'
jobs:
typecheck-lint-build:
name: Typecheck, Lint & Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: trustsignal-reddit-web
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: trustsignal-reddit-web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npx tsc --noEmit
- name: Lint
run: npm run lint
- name: Build
run: npm run build
env:
# Stub env vars so the build doesn't fail in CI without secrets
NEXT_PUBLIC_SUPABASE_URL: https://placeholder.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY: placeholder
SUPABASE_SERVICE_ROLE_KEY: placeholder
STRIPE_SECRET_KEY: placeholder
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: placeholder
ANTHROPIC_API_KEY: placeholder
security-audit:
name: Security Audit
runs-on: ubuntu-latest
defaults:
run:
working-directory: trustsignal-reddit-web
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: trustsignal-reddit-web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Audit
run: npm audit --audit-level=high