fix: freeze docs deps (#641) #1692
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: Partytown CI | |
on: [push, pull_request] | |
jobs: | |
test-chromium: | |
name: Test Chromium (Ubuntu) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 20.10.0 | |
cache: 'pnpm' | |
registry-url: https://registry.npmjs.org/ | |
- run: corepack enable | |
- name: Install NPM Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: npm run build | |
- name: Install Chromium Playwright | |
run: npx playwright install chromium && npx playwright install-deps chromium | |
- name: Run Chromium E2E Tests (Service Worker) | |
run: npm run test.chromium | |
- name: Run Chromium E2E Tests (Atomics) | |
run: npm run test.atomics | |
- name: Run Unit Tests | |
run: npm run test.unit | |
- name: Upload Chromium E2E Test Videos | |
uses: actions/[email protected] | |
if: always() | |
with: | |
name: Chromium E2E Test Videos | |
path: tests/videos | |
test-webkit: | |
name: Test WebKit (MacOS) | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 20.10.0 | |
cache: 'pnpm' | |
registry-url: https://registry.npmjs.org/ | |
- run: corepack enable | |
- name: Install NPM Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: npm run build | |
- name: Install WebKit Playwright | |
run: npx playwright install webkit && npx playwright install-deps webkit | |
- name: Run WebKit E2E Tests | |
run: npm run test.webkit | |
- name: Upload WebKit E2E Test Videos | |
uses: actions/[email protected] | |
if: always() | |
with: | |
name: WebKit E2E Test Videos Videos | |
path: tests/videos | |
benchmark-chromium: | |
name: Benchmark Chromium (Ubuntu) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 20.10.0 | |
cache: 'pnpm' | |
registry-url: https://registry.npmjs.org/ | |
- run: corepack enable | |
- name: Install NPM Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: npm run build | |
- name: Install Chromium Playwright | |
run: npx playwright install chromium && npx playwright install-deps chromium | |
- name: Run Chromium Benchmark | |
run: npm run benchmark | |
- name: Upload Chromium Benchmark Screenshots | |
uses: actions/[email protected] | |
if: always() | |
with: | |
name: Chromium Benchmark Screenshots | |
path: tests/benchmarks/screenshots |