β¬οΈ Bump next from 14.2.18 to 14.2.20 #15
Workflow file for this run
This file contains 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: End-to-End Tests | |
on: | |
workflow_dispatch: | |
push: | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
schedule: | |
- cron: '0 6 * * 0' | |
jobs: | |
e2e: | |
runs-on: ubuntu-latest | |
env: | |
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/../.ms-playwright | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Get Playwright's Version | |
shell: bash # necessary for it to work on Windows, which uses powershell by default | |
run: echo "PLAYWRIGHT_VERSION=$(node -p 'require("@playwright/test/package.json").version')" >> $GITHUB_OUTPUT | |
id: playwright-version | |
- name: Cache playwright binaries | |
uses: actions/cache@v4 | |
id: playwright-cache | |
with: | |
path: | | |
${{ env.PLAYWRIGHT_BROWSERS_PATH }} | |
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }} | |
- name: Install Playwrigtht dependencies | |
run: yarn playwright install --with-deps chromium | |
if: steps.playwright-cache.outputs.cache-hit != 'true' | |
- name: E2E Test | |
run: yarn test:e2e | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
PROJECT_URL: http://127.0.0.1:3000 | |
- name: Upload Playwright artifacts on failure | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: playwright-artifacts | |
path: .playwright/**/* | |
include-hidden-files: true | |
if-no-files-found: error |