Add sign in #13
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 | |
| jobs: | |
| ci: | |
| name: All | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check | |
| run: npx tsc --noEmit | |
| - name: Lint | |
| run: npm run lint | |
| - name: Run Jest tests | |
| run: npm run test | |
| - name: Build app | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
| run: npm run build | |
| # Optional: Playwright E2E tests | |
| - name: Install Playwright deps | |
| run: npx playwright install --with-deps | |
| # npm install @playwright/test | |
| # npx playwright install | |
| - name: Run E2E tests | |
| run: | | |
| npm start & | |
| npx wait-on http://localhost:3000 | |
| npx playwright test tests/playwright | |
| SERVER_PID=$(fuser -k 3000/tcp) | |
| echo $SERVER_PID | |
| kill $SERVER_PID |