Fix public password reset proxy (#54) #171
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
| # =============================================================== | |
| # 🧩 Server Lint & Test - BFF Quality Gate | |
| # =============================================================== | |
| # - runs typecheck and Vitest for the BFF (server/) | |
| # - runs on PRs and pushes to main | |
| # --------------------------------------------------------------- | |
| name: Server Lint & Test | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| types: [opened, synchronize, ready_for_review] | |
| branches: ["main"] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint-and-test: | |
| if: github.event_name != 'pull_request' || !github.event.pull_request.draft | |
| name: Lint & Test Server | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| defaults: | |
| run: | |
| working-directory: server | |
| steps: | |
| - name: ⬇️ Checkout source | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 1 | |
| - name: 🟩 Setup Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: "22" | |
| - name: 📥 Install dependencies | |
| run: npm ci --no-audit --no-fund | |
| - name: 🔍 Typecheck | |
| run: npm run lint | |
| - name: 🧪 Run tests with Vitest | |
| run: npm run test:run |