Skip to content

fix(ci): use pinned playwright version for browser install #797

fix(ci): use pinned playwright version for browser install

fix(ci): use pinned playwright version for browser install #797

Workflow file for this run

name: CI
on: [push, workflow_call]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Cache build
uses: actions/cache/save@v4
with:
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: build-${{ github.sha }}
lint:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup
- run: pnpm lint
format:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup
- run: pnpm format:check
typecheck:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup
- run: pnpm typecheck
tests:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup
- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpm exec playwright install chromium
- run: pnpm test:ci