ci: add e2e test

This commit is contained in:
Andelf
2021-11-23 14:30:49 +08:00
committed by Tienson Qin
parent 8d0d4ae3a2
commit a80b3d1c68

View File

@@ -79,3 +79,19 @@ jobs:
run: |
yarn cljs:test
node static/tests.js
- name: Run Playwright test
if: github.event_name == 'pull_request'
run: |
yarn release
(cd static && yarn install && yarn rebuild:better-sqlite3)
xvfb-run -- yarn e2e-test
env:
DEBUG: "pw:test"
- name: Save test artifacts
if: ${{ github.event_name == 'pull_request' && failure() }}
uses: actions/upload-artifact@v2
with:
name: e2e-test-report
path: artifacts.zip