feat(auth): add Firebase phone and email link passwordless authentica… #32
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: Continuous Integration | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| quality-gate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Create env file for CI | |
| run: | | |
| cat <<'EOF' > .env | |
| PORT=4000 | |
| JWT_SECRET=ci-secret | |
| JWT_TTL_SECONDS=3600 | |
| CORS_ORIGIN=http://localhost:5173 | |
| PASSWORD_MIN_LENGTH=10 | |
| PWD_RESET_OTP_TTL_MS=600000 | |
| PWD_RESET_MAX_ATTEMPTS=5 | |
| EOF | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Lint | |
| run: npm run lint | |
| - name: Type check | |
| run: npm run typecheck | |
| - name: Build | |
| run: npm run build |