mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 02:35:14 +00:00
chore: add ci for e2e
This commit is contained in:
parent
3709361745
commit
67b5e7ead5
27
.github/workflows/nocobase-test-e2e.yml
vendored
Normal file
27
.github/workflows/nocobase-test-e2e.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user