Skip to content

test: use playwright for e2e tests #339

test: use playwright for e2e tests

test: use playwright for e2e tests #339

Workflow file for this run

on:
pull_request:
push:
branches: [master]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Build and test the library
run: |
bun install
bun run build:lib
bun run build
bun run package
bun run check & bun run test
test-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: e2e tests
run: |
npm install
npm run playwright install --with-deps
npm run test:e2e