Skip to content

Commit 3b3f98b

Browse files
committed
Refactor GitHub Actions workflow to streamline test execution by replacing individual web-test-runner commands with a single npm script invocation. This simplifies the workflow and maintains consistency across different environments.
1 parent cdb3b93 commit 3b3f98b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/deployment.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ jobs:
3636
- name: Install Playwright browsers
3737
run: npx playwright install --with-deps
3838
- name: Run tests
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
39+
run: npm run test
4240
test_win:
4341
name: "Windows"
4442
runs-on: windows-latest
@@ -59,9 +57,7 @@ jobs:
5957
- name: Install Playwright browsers
6058
run: npx playwright install --with-deps
6159
- name: Run tests
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
60+
run: npm run test
6561
tag:
6662
name: "Publishing release"
6763
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)