Skip to content

Commit

Permalink
Reoganizing workflow and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcharlie committed Apr 21, 2020
1 parent 682436e commit d544e4a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Expand Up @@ -26,8 +26,7 @@ jobs:
uses: rrainn/dynamodb-action@v1.0
- name: Create coverage folder
run: mkdir -p ./coverage
- name: Run tests
run: npx nyc --all mocha && npx nyc report --reporter=text-lcov > ./coverage/lcov.info
- run: npm test
- name: Coveralls
uses: coverallsapp/github-action@v1.0.1
with:
Expand Down
6 changes: 6 additions & 0 deletions nyc.config.js
Expand Up @@ -7,5 +7,11 @@ module.exports = {
"publish",
"docs",
"nyc.config.js"
],
"all": true,
"reporter": [
"html",
"text",
"lcovonly"
]
};
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -24,10 +24,10 @@
"build": "tsc",
"build:clean": "rm -rf dist",
"build:watch": "npm run build -- -w",
"test": "nyc --all mocha && nyc report --reporter=html",
"test:debug": "mocha --inspect=9229",
"test:debug:breakpoint": "mocha --inspect-brk=9229",
"test:nocoverage": "mocha",
"test": "nyc npm run test:nocoverage",
"test:debug": "npm run test:nocoverage -- --inspect=9229",
"test:debug:breakpoint": "npm run test:nocoverage -- --inspect-brk=9229",
"lint": "eslint . --ext .ts,.js",
"lint:fix": "npm run lint -- --fix",
"site:install": "cd docs && npm install",
Expand Down

0 comments on commit d544e4a

Please sign in to comment.