File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ jobs:
1414 main :
1515 # ignore all-contributors PRs
1616 if : ${{ !contains(github.head_ref, 'all-contributors') }}
17- name : Node ${{ matrix.node }}, Svelte ${{ matrix.svelte }}
17+ name : Node ${{ matrix.node }}, Svelte ${{ matrix.svelte }}, ${{ matrix.test-runner }}
18+ runs-on : ubuntu-latest
1819 strategy :
1920 matrix :
2021 node : ['16', '18', '20']
2122 svelte : ['3', '4']
22- runs-on : ubuntu-latest
23+ test-runner : ['vitest:jsdom', 'vitest:happy-dom']
24+
2325 steps :
2426 - name : ⬇️ Checkout repo
2527 uses : actions/checkout@v4
3537 npm install --no-save svelte@${{ matrix.svelte }}
3638
3739 - name : ▶️ Run validate script
38- run : npm run validate
40+ run : npm run test:${{ matrix.test-runner }}
3941
4042 - name : ⬆️ Upload coverage report
4143 uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change 5555 "test" : " vitest run --coverage" ,
5656 "test:watch" : " vitest" ,
5757 "test:update" : " vitest run --update" ,
58+ "test:vitest:jsdom" : " vitest run --coverage --environment jsdom" ,
59+ "test:vitest:happy-dom" : " vitest run --coverage --environment happy-dom" ,
5860 "setup" : " npm install && npm run validate" ,
59- "validate" : " npm-run-all test" ,
61+ "validate" : " npm-run-all test:vitest:* " ,
6062 "contributors:add" : " all-contributors add" ,
6163 "contributors:generate" : " all-contributors generate"
6264 },
8486 "eslint-plugin-simple-import-sort" : " 10.0.0" ,
8587 "eslint-plugin-svelte" : " 2.35.1" ,
8688 "eslint-plugin-vitest-globals" : " 1.4.0" ,
89+ "happy-dom" : " ^13.3.1" ,
8790 "jsdom" : " ^22.1.0" ,
8891 "npm-run-all" : " ^4.1.5" ,
8992 "prettier" : " 3.2.4" ,
You can’t perform that action at this time.
0 commit comments