fix(web): fix pre-existing Astro build errors - missing imports and v… #36
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] | |
| workflow_dispatch: | |
| jobs: | |
| verify: | |
| name: Typecheck, test, audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Typecheck | |
| run: pnpm -r typecheck | |
| - name: Test | |
| run: pnpm --filter @freellm/gateway test | |
| - name: Audit production dependencies | |
| # Fails the job on any advisory at moderate severity or higher. | |
| # Temporary exceptions are documented in .github/audit-allowlist.json. | |
| run: pnpm audit --prod --audit-level=moderate | |
| continue-on-error: false |