Skip to content

ci(repo): use Playwright Chromium in browser smokes #18

ci(repo): use Playwright Chromium in browser smokes

ci(repo): use Playwright Chromium in browser smokes #18

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
verify:
name: Node ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 22.x
- 24.x
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 11.8.0
- name: Setup Node
uses: actions/setup-node@v6
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright browser
run: |
pnpm exec playwright install --with-deps chromium
echo "PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=$(node -e 'const { chromium } = require(\"playwright\"); console.log(chromium.executablePath())')" >> "$GITHUB_ENV"
- name: Verify
run: pnpm run ci