From 10c52ce706674bef61c9450bc9edce795478522c Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Thu, 11 Jul 2024 11:45:08 +0200 Subject: [PATCH] ci: Run browser tests in chrome/firefox/edge on CI --- .github/workflows/test_web.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_web.yml b/.github/workflows/test_web.yml index 5dbf71da2..cdcdf2700 100644 --- a/.github/workflows/test_web.yml +++ b/.github/workflows/test_web.yml @@ -5,6 +5,7 @@ on: branches: [master] pull_request: branches: [master] + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -87,12 +88,16 @@ jobs: working-directory: web run: npm run lint - - name: Run tests - # MIKE: Don't run web tests on Windows because it's flaky for unknown reasons. :-( - if: runner.os == 'Linux' + - name: Run node-based tests working-directory: web run: npm test + - name: Run browser-based tests + # Don't run browser tests on Windows because it's flaky for unknown reasons. :-( + if: runner.os == 'Linux' + working-directory: web + run: npm run wdio -- --headless --chrome --firefox --edge + check-required: needs: changes if: needs.changes.outputs.should_run == 'false'