Fix npm package README publishing #530
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: E2E Browser Tests | |
| on: | |
| pull_request: | |
| paths: | |
| - 'apps/backend/**' | |
| - 'apps/web/**' | |
| - 'packages/**' | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| e2e-browser: | |
| name: Browser E2E Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci --prefer-offline --no-audit --no-fund --loglevel error | |
| - name: Build all workspace packages | |
| run: npm run build --workspaces --if-present | |
| - name: Install Playwright Chromium | |
| run: cd apps/web && npx playwright install --with-deps chromium | |
| - name: Create temp directory for SQLite | |
| run: mkdir -p tmp | |
| - name: Run Browser E2E tests | |
| run: cd apps/web && npx playwright test | |
| env: | |
| CI: true | |
| NODE_ENV: test | |
| SQLITE_DB_PATH: ${{ github.workspace }}/tmp/tests.db | |
| SERVER_TIMEOUT_MS: '180000' | |
| KEEP_ALIVE_TIMEOUT_MS: '180000' | |
| HEADERS_TIMEOUT_MS: '185000' | |
| - name: Upload Playwright report | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: apps/web/playwright-report/ | |
| retention-days: 7 | |
| - name: Upload Playwright traces | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: playwright-traces | |
| path: apps/web/test-results/ | |
| retention-days: 7 |