Skip to content

Commit 4e7e737

Browse files
authored
Update ci.yml
1 parent 9956e10 commit 4e7e737

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Codecov CI with Vitest (fully dynamic build)
1+
name: Codecov CI with Vitest (final fully portable version)
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
test:
@@ -20,8 +20,9 @@ jobs:
2020
npm init -y
2121
npm install vitest@1.6.1 @vitest/coverage-v8@1.6.1
2222
23-
- name: Add test script to package.json
24-
run: npm set-script test "vitest run --coverage"
23+
- name: Add test script manually
24+
run: |
25+
jq '.scripts.test="vitest run --coverage"' package.json > tmp.json && mv tmp.json package.json
2526
2627
- name: Create vitest.config.ts
2728
run: |

0 commit comments

Comments
 (0)