chore: add ci for e2e

This commit is contained in:
Rain 2023-09-10 00:23:06 +08:00
parent 3709361745
commit 67b5e7ead5

27
.github/workflows/nocobase-test-e2e.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: NocoBase E2E Test
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: yarn test:e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30