Skip to content

[feature]: Add web-preview component and related test cases, example, and doc #3

[feature]: Add web-preview component and related test cases, example, and doc

[feature]: Add web-preview component and related test cases, example, and doc #3

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
name: Run Tests (Node.js ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 24]
steps:
- name: Checkout Repo
uses: actions/checkout@v5
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: pnpm i
- name: Install Playwright Browsers
run: pnpm --filter @repo/elements exec playwright install --with-deps chromium
- name: Run Tests
run: pnpm test