chore(gh-action): create playwright workflow

This commit is contained in:
moklick
2024-07-01 17:10:07 +02:00
parent 92780fe62b
commit f791b9b72a
3 changed files with 25 additions and 12 deletions

View File

@@ -9,14 +9,3 @@ runs:
- name: Typecheck
run: pnpm typecheck
shell: bash
- name: Install Playwright browsers
run: pnpm exec playwright install --with-deps
shell: bash
- name: Test React Flow
run: pnpm test:react
shell: bash
env:
CI: true
# - name: Test Svelte Flow
# run: pnpm test:svelte
# shell: bash

View File

@@ -9,7 +9,6 @@ runs:
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
shell: bash

25
.github/workflows/playwright.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Playwright Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
playwright:
name: 'Playwright Tests'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.45.0-jammy
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: ./.github/actions/ci-setup
- uses: ./.github/actions/ci-checks
- name: Run your tests
run: CI=true pnpm test:react
env:
HOME: /root