|
|
@@ -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
|