Skip to content

Add challenge finished state, winners display, and truncate leaderboa… #762

Add challenge finished state, winners display, and truncate leaderboa…

Add challenge finished state, winners display, and truncate leaderboa… #762

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
env:
PNPM_VERSION: 10.14.0
jobs:
checks:
name: Lint, Typecheck, and Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch base branch for turbo --affected
if: github.event_name == 'pull_request'
run: git fetch origin ${{ github.event.pull_request.base.ref }}
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- name: Restore Turbo cache
uses: actions/cache@v4
with:
path: .turbo
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: turbo-${{ runner.os }}-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Typecheck
run: pnpm typecheck
- name: Build
env:
NEXT_PUBLIC_CONVEX_URL: "https://example.convex.cloud"
NEXT_PUBLIC_CONVEX_SITE_URL: "https://example.convex.site"
NEXT_PUBLIC_BETTER_AUTH_URL: "http://localhost:3000/api/auth"
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
NEXT_PUBLIC_STRAVA_CLIENT_ID: "12345"
run: pnpm build
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- name: Restore Turbo cache
uses: actions/cache@v4
with:
path: .turbo
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: turbo-${{ runner.os }}-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run activity lifecycle harness
run: pnpm -F web test --run tests/api/activity-lifecycle-harness.test.ts
- name: Run tests
run: pnpm test