Skip to content

⬆️ Bump satori from 0.10.14 to 0.12.0 #6

⬆️ Bump satori from 0.10.14 to 0.12.0

⬆️ Bump satori from 0.10.14 to 0.12.0 #6

Workflow file for this run

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