Skip to content

feat(feed): default the case feed to the newest year and add a year f… #104

feat(feed): default the case feed to the newest year and add a year f…

feat(feed): default the case feed to the newest year and add a year f… #104

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-typecheck:
name: Lint & Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Type check
run: npx tsc --noEmit
- name: Lint
run: npm run lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npx vitest run
format-check:
name: Format Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npx prettier --check .
build:
name: Build
runs-on: ubuntu-latest
needs: [lint-and-typecheck]
env:
NEXT_PUBLIC_SITE_URL: https://agentpostmortem.com
NEXT_PUBLIC_SUPABASE_URL: https://placeholder.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY: placeholder
SUPABASE_SERVICE_ROLE_KEY: placeholder
R2_ACCOUNT_ID: placeholder
R2_ACCESS_KEY_ID: placeholder
R2_SECRET_ACCESS_KEY: placeholder
R2_BUCKET_NAME: placeholder
R2_PUBLIC_URL: https://placeholder.r2.dev
RESEND_API_KEY: placeholder
ADMIN_PASSWORD: placeholder
IP_HASH_PEPPER: placeholder-pepper-32-chars-xxxxxxxxxxxxxxxx
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build