i actually really like auth #10
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: Run DB Test | |
| on: | |
| push: | |
| branches: | |
| - 'dev' | |
| jobs: | |
| tests: | |
| name: DB Test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| services: | |
| sqld: | |
| image: ghcr.io/libsql/sqld:latest | |
| ports: | |
| - 8080:8080 | |
| env: | |
| ENVIRONMENT: DEV | |
| TURSO_DEV_DATABASE_URL: http://127.0.0.1:8080 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.1.0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.11.0 | |
| - name: Install dependencies | |
| run: pnpm i | |
| - name: Create .dev.vars file | |
| run: | | |
| echo ENVIRONMENT=$ENVIRONMENT >> .dev.vars | |
| echo TURSO_DEV_DATABASE_URL=$TURSO_DEV_DATABASE_URL >> .dev.vars | |
| - name: Initialize Drizzle | |
| run: pnpm run drizzle:dev:init | |
| - name: Seed DB | |
| run: pnpm run drizzle:seed |