This repository was archived by the owner on Jun 30, 2026. It is now read-only.
chore(deps): bump serialize-javascript from 7.0.4 to 7.0.5 (#592) #991
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: Frontend Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| merge_group: | |
| branches: [main] | |
| permissions: read-all | |
| jobs: | |
| # Frontend tests (always runs to produce a check, but skips work if no frontend changes) | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.1 | |
| - name: Check for frontend changes | |
| uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 | |
| id: changes | |
| with: | |
| filters: | | |
| frontend: | |
| - '!infra/**' | |
| - '!infra-signup/**' | |
| - '!docs/**' | |
| - '.github/workflows/test.yml' | |
| signup: | |
| - 'infra-signup/**' | |
| - '.github/workflows/test.yml' | |
| - name: Skip notification | |
| if: steps.changes.outputs.frontend != 'true' | |
| run: | | |
| echo "::notice::No frontend files changed. Tests skipped but check passed." | |
| echo "Frontend tests are only run when files outside infra/** and docs/** are modified." | |
| - name: Enable Corepack | |
| if: steps.changes.outputs.frontend == 'true' | |
| run: corepack enable | |
| - name: Setup Node.js | |
| if: steps.changes.outputs.frontend == 'true' | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version: "20.17.0" | |
| cache: "yarn" | |
| - name: Install dependencies | |
| if: steps.changes.outputs.frontend == 'true' | |
| run: yarn install --immutable | |
| - name: Install Playwright Browsers | |
| if: steps.changes.outputs.frontend == 'true' | |
| run: npx playwright install --with-deps | |
| - name: Install mitmproxy | |
| if: steps.changes.outputs.frontend == 'true' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y mitmproxy | |
| - name: Start mitmproxy | |
| if: steps.changes.outputs.frontend == 'true' | |
| run: | | |
| mitmproxy --listen-port 8081 -s scripts/mitmproxy-addon.py & | |
| sleep 5 | |
| - name: Run unit tests | |
| if: steps.changes.outputs.frontend == 'true' | |
| run: yarn test | |
| # Signup Lambda tests | |
| - name: Skip signup notification | |
| if: steps.changes.outputs.signup != 'true' | |
| run: | | |
| echo "::notice::No signup infrastructure files changed. Signup tests skipped." | |
| - name: Install signup dependencies | |
| if: steps.changes.outputs.signup == 'true' | |
| working-directory: infra-signup | |
| run: yarn install --immutable | |
| - name: Run signup tests | |
| if: steps.changes.outputs.signup == 'true' | |
| working-directory: infra-signup | |
| run: yarn test | |
| # Temporarily disabled - proxy configuration issues in CI | |
| # - name: Run E2E tests | |
| # run: yarn test:e2e | |
| # - name: Run Accessibility tests (Story 5.10) | |
| # run: yarn test:e2e:accessibility | |
| - name: Upload Playwright artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 7 |