mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 00:46:23 +00:00
ci: add e2e test
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user