chore(deps): bump the all-actions group across 1 directory with 2 updates #1508
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 Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| e2e-cli: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| env: | |
| NO_COLOR: 1 | |
| E2E_ABLY_API_KEY: ${{ secrets.E2E_ABLY_API_KEY }} | |
| E2E_ABLY_ACCESS_TOKEN: ${{ secrets.E2E_ABLY_ACCESS_TOKEN }} | |
| TERMINAL_SERVER_SIGNING_SECRET: ${{ secrets.TERMINAL_SERVER_SIGNING_SECRET }} | |
| E2E_TESTS: true | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22.x" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Type check | |
| run: pnpm run build | |
| - name: Lint check | |
| run: pnpm run lint | |
| - name: Get Playwright version | |
| id: playwright-version | |
| run: echo "version=$(pnpm exec playwright --version)" >> $GITHUB_OUTPUT | |
| - name: Cache Playwright browsers | |
| id: playwright-cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} | |
| - name: Install Playwright browsers | |
| if: steps.playwright-cache.outputs.cache-hit != 'true' | |
| run: pnpm exec playwright install --with-deps | |
| - name: Install Playwright system deps | |
| if: steps.playwright-cache.outputs.cache-hit == 'true' | |
| run: pnpm exec playwright install-deps | |
| - name: Set up test environment | |
| run: | | |
| echo "ABLY_API_KEY=${{ secrets.E2E_ABLY_API_KEY }}" > .env.test | |
| echo "E2E_ABLY_API_KEY=${{ secrets.E2E_ABLY_API_KEY }}" >> .env.test | |
| echo "E2E_ABLY_ACCESS_TOKEN=${{ secrets.E2E_ABLY_ACCESS_TOKEN }}" >> .env.test | |
| echo "TERMINAL_SERVER_SIGNING_SECRET=${{ secrets.TERMINAL_SERVER_SIGNING_SECRET }}" >> .env.test | |
| - name: Run All E2E CLI Tests | |
| run: | | |
| echo "Running All E2E CLI Tests..." | |
| timeout 1800s pnpm test:e2e || { | |
| echo "E2E CLI tests failed or timed out" | |
| exit 1 | |
| } |