Skip to content

Commit cdb3b93

Browse files
committed
Refactor GitHub Actions workflow to simplify test execution by replacing the previous command with separate invocations of web-test-runner for both standard and visual regression tests. This enhances clarity and maintains consistency across different environments.
1 parent 5b7cf8d commit cdb3b93

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/deployment.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
- name: Install Playwright browsers
3737
run: npx playwright install --with-deps
3838
- name: Run tests
39-
run: node ./node_modules/@web/test-runner/dist/test-runner.js test/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit && node ./node_modules/@web/test-runner/dist/test-runner.js test/visual/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit
39+
run: |
40+
./node_modules/.bin/web-test-runner test/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit
41+
./node_modules/.bin/web-test-runner test/visual/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit
4042
test_win:
4143
name: "Windows"
4244
runs-on: windows-latest
@@ -57,7 +59,9 @@ jobs:
5759
- name: Install Playwright browsers
5860
run: npx playwright install --with-deps
5961
- name: Run tests
60-
run: node ./node_modules/@web/test-runner/dist/test-runner.js test/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit && node ./node_modules/@web/test-runner/dist/test-runner.js test/visual/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit
62+
run: |
63+
./node_modules/.bin/web-test-runner test/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit
64+
./node_modules/.bin/web-test-runner test/visual/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit
6165
tag:
6266
name: "Publishing release"
6367
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)