Skip to content

CoderCup — initial public release #8

CoderCup — initial public release

CoderCup — initial public release #8

Workflow file for this run

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