Skip to content

Commit

Permalink
add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
antpaw committed Mar 6, 2023
1 parent bfa819f commit 749fd31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
node-version: 16
- run: npm ci
- run: npm test
- run: npm run lint
- run: npm run build
- name: Upload coverage to Codecov
- uses: codecov/codecov-action@v3

publish-npm:
needs: build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Create thumbnails from uploading files (image/video)",
"main": "index.js",
"scripts": {
"test": "mocha",
"test": "nyc mocha",
"build": "webpack",
"lint": "jshint **.js **/*.js",
"coverage": "nyc npm run test"
Expand Down

0 comments on commit 749fd31

Please sign in to comment.