chore(gh-action): create playwright workflow
This commit is contained in:
11
.github/actions/ci-checks/action.yml
vendored
11
.github/actions/ci-checks/action.yml
vendored
@@ -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
|
||||
|
||||
1
.github/actions/ci-setup/action.yml
vendored
1
.github/actions/ci-setup/action.yml
vendored
@@ -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
25
.github/workflows/playwright.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user