chore(gh-action): create playwright workflow
This commit is contained in:
@@ -9,14 +9,3 @@ runs:
|
|||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
run: pnpm typecheck
|
run: pnpm typecheck
|
||||||
shell: bash
|
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
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ runs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
cache: 'pnpm'
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user