chore(config): update Playwright config to use explicit IP for baseUR… #67
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, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # Needed to checkout the repository | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "pnpm" | |
| # Setup .next/cache directory cache | |
| - name: Setup Next.js cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .next/cache | |
| ${{ github.workspace }}/.next/cache | |
| key: ${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}- | |
| ${{ runner.os }}-nextjs- | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Format check | |
| run: pnpm format --check | |
| - name: Build | |
| run: pnpm build --debug | |
| env: | |
| NEXT_TELEMETRY_DISABLED: 1 | |
| NODE_OPTIONS: "--max_old_space_size=4096" | |
| NEXTJS_DEBUG: 1 | |
| - name: Install Playwright Browsers | |
| run: npx playwright install --with-deps | |
| - name: Run unit tests | |
| run: pnpm test | |
| - name: Run Playwright e2e tests | |
| run: pnpm test:e2e | |