Add support for Heartwood

Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
xphoniex
2023-01-04 11:20:14 +01:00
committed by Rūdolfs Ošiņš
co-authored by Rūdolfs Ošiņš
parent adc159a71e
commit f72405a3e4
36 changed files with 561 additions and 182 deletions
+9 -2
View File
@@ -12,7 +12,7 @@ jobs:
continue-on-error: true
strategy:
matrix:
browser: [chromium, firefox, visual]
browser: [chromium, firefox, visual, heartwood]
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
@@ -59,12 +59,19 @@ jobs:
run: npx playwright install-deps
- name: Start http-api test server
run: ./scripts/run-http-api-with-fixtures --non-interactive --detach
run: |
if [ ${{ matrix.browser }} = "heartwood" ]; then
./scripts/run-httpd-with-fixtures --non-interactive --detach
else
./scripts/run-http-api-with-fixtures --non-interactive --detach
fi
- name: Run Playwright tests
run: |
if [ ${{ matrix.browser }} = "visual" ] && [ ${{ github.ref }} = "refs/heads/master" ]; then
npm run test:e2e -- --project ${{ matrix.browser }} --update-snapshots;
elif [ ${{ matrix.browser }} = "heartwood" ]; then
HEARTWOOD=true npm run test:e2e -- --project chromium;
else
npm run test:e2e -- --project ${{ matrix.browser }};
fi