feat: admin stat endpoints #24
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, develop] | |
| push: | |
| branches: [main, develop] | |
| jobs: | |
| lint-and-test: | |
| name: Lint and Test | |
| runs-on: ubuntu-latest | |
| env: | |
| DATABASE_URL: "file:./test.db" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Generate Prisma Client | |
| run: bun prisma generate | |
| - name: Type check | |
| run: bun run type-check | |
| - name: Lint | |
| run: bun run lint || echo "No lint script found, skipping..." | |
| continue-on-error: true | |
| - name: Test | |
| run: bun test || echo "No tests found, skipping..." | |
| continue-on-error: true |