chore: update workflows/coverage.yml

This commit is contained in:
chenshenhai 2021-09-20 21:10:03 +08:00
parent cabf0091c9
commit f41e7c10a7
3 changed files with 4 additions and 1 deletions

View file

@ -28,6 +28,7 @@ jobs:
- run: npm install
- run: npm run beforetest
- run: npm run cover
- run: npm run hello
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:

View file

@ -21,7 +21,8 @@
"precommit": "npm run lint",
"prepush": "npm run lint",
"clear:jest": "rm -rf ./packages/*/__tests__/__snapshots__",
"pu": "npm run build && lerna publish --force-publish"
"pu": "npm run build && lerna publish --force-publish",
"hello": "node ./scripts/hello.js"
},
"devDependencies": {
"@babel/core": "^7.13.14",

1
scripts/hello.js Normal file
View file

@ -0,0 +1 @@
console.log('Hello World!')