Skip to content

Commit 5f9bd2c

Browse files
committed
Add a smoke test to properly test basic functionality
Ensures the app at least starts and injects preload correctly.
1 parent 91bdb26 commit 5f9bd2c

File tree

6 files changed

+229
-40
lines changed

6 files changed

+229
-40
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,19 @@ jobs:
7979
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8080
USE_SYSTEM_FPM: ${{ matrix.platform == 'linux' && matrix.arch == 'arm64' }}
8181

82+
- name: Run smoke tests
83+
run: |
84+
# We manually start ADB, so the tests don't (because if they do, they fail
85+
# to exit, due to the hanging process)
86+
"$ANDROID_HOME/platform-tools/adb" start-server 2>/dev/null || true
87+
88+
if [ "$RUNNER_OS" == "Linux" ]; then
89+
xvfb-run --auto-servernum npm test
90+
else
91+
npm test
92+
fi
93+
shell: bash
94+
8295
- uses: actions/upload-artifact@v4
8396
with:
8497
name: ${{ matrix.platform }}-${{ matrix.arch }}-distributables

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ build/
44
dist/
55
httptoolkit-server/
66
appveyor-tools/
7+
.playwright/

0 commit comments

Comments
 (0)