Skip to content

Commit df23013

Browse files
committed
Update GitHub Actions workflow to replace default test command with a comprehensive web-test-runner command that includes coverage and visual regression tests across multiple browsers. This enhances the testing process and ensures better test coverage.
1 parent a95b3f9 commit df23013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deployment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install dependencies
3535
run: npm install
3636
- name: Run tests
37-
run: npm test
37+
run: npx web-test-runner test/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit && npx web-test-runner test/visual/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit
3838
test_win:
3939
name: "Windows"
4040
runs-on: windows-latest
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install dependencies
5454
run: npm install
5555
- name: Run tests
56-
run: npm test
56+
run: npx web-test-runner test/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit && npx web-test-runner test/visual/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit
5757
tag:
5858
name: "Publishing release"
5959
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)