-
Notifications
You must be signed in to change notification settings - Fork 3
chore: verify auto-deploy webhook after repo migration #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Unit tests + Next.js build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.10.0'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Type check + run unit tests
run: npm test -- --run
- name: Build the leaderboard (Next.js static export)
run: npm run build
# CDK tsc-only check (no synth — RunnerStack does a VPC lookup that needs
# AWS credentials, and we don't want to gate CI on OIDC setup right now).
cdk-typecheck:
name: CDK type check (infra)
runs-on: ubuntu-latest
defaults:
run:
working-directory: infra/cdk
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.10.0'
- name: Install CDK deps
run: npm ci
- name: tsc --noEmit
run: npx tsc --noEmit