feat: keep teaching progress out of workspace files #171
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: | |
| pull_request: | |
| branches: | |
| - main | |
| - staging | |
| push: | |
| branches: | |
| - main | |
| - staging | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| name: Typecheck and tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.32.1 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 | |
| with: | |
| bun-version: 1.3.8 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Check types | |
| run: pnpm check-types | |
| - name: Build | |
| run: pnpm build | |
| env: | |
| DATABASE_URL: postgresql://postgres:postgres@localhost:5432/avenire | |
| BETTER_AUTH_SECRET: ci-build-only-secret-not-for-production-123456 | |
| BETTER_AUTH_URL: http://localhost:3000 | |
| NEXT_PUBLIC_APP_URL: http://localhost:3000 | |
| RESEND_API_KEY: re_ci_build_only | |
| - name: Run tests | |
| run: pnpm test | |
| - name: Report test budget | |
| run: pnpm test:budget |