File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ jobs:
14
14
main :
15
15
# ignore all-contributors PRs
16
16
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
18
19
strategy :
19
20
matrix :
20
21
node : ['16', '18', '20']
21
22
svelte : ['3', '4']
22
- runs-on : ubuntu-latest
23
+ test-runner : ['vitest:jsdom', 'vitest:happy-dom']
24
+
23
25
steps :
24
26
- name : ⬇️ Checkout repo
25
27
uses : actions/checkout@v4
35
37
npm install --no-save svelte@${{ matrix.svelte }}
36
38
37
39
- name : ▶️ Run validate script
38
- run : npm run validate
40
+ run : npm run test:${{ matrix.test-runner }}
39
41
40
42
- name : ⬆️ Upload coverage report
41
43
uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change 55
55
"test" : " vitest run --coverage" ,
56
56
"test:watch" : " vitest" ,
57
57
"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" ,
58
60
"setup" : " npm install && npm run validate" ,
59
- "validate" : " npm-run-all test" ,
61
+ "validate" : " npm-run-all test:vitest:* " ,
60
62
"contributors:add" : " all-contributors add" ,
61
63
"contributors:generate" : " all-contributors generate"
62
64
},
84
86
"eslint-plugin-simple-import-sort" : " 10.0.0" ,
85
87
"eslint-plugin-svelte" : " 2.35.1" ,
86
88
"eslint-plugin-vitest-globals" : " 1.4.0" ,
89
+ "happy-dom" : " ^13.3.1" ,
87
90
"jsdom" : " ^22.1.0" ,
88
91
"npm-run-all" : " ^4.1.5" ,
89
92
"prettier" : " 3.2.4" ,
You can’t perform that action at this time.
0 commit comments