Skip to content

Commit

Permalink
fix interface to Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Symmetronic committed Dec 8, 2020
1 parent ed25270 commit 7fbcee0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 31 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Cache Node.js modules
uses: actions/cache@v2
with:
Expand All @@ -22,9 +24,14 @@ jobs:
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
- name: Lint code
run: npm run lint
- name: Run tests and coverage
run: npm run test:coveralls

- name: Lint code, run tests and create coverage report
run: npm run test:prod

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
25 changes: 0 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
"start": "rollup -c rollup.config.ts -w",
"test": "jest --coverage",
"test:coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
"test:prod": "npm run lint && npm run test -- --no-cache",
"test:watch": "jest --coverage --watch"
},
Expand Down Expand Up @@ -74,7 +73,6 @@
"devDependencies": {
"@types/jest": "^26.0.15",
"@types/node": "^10.17.47",
"coveralls": "^3.1.0",
"jest": "^26.6.3",
"jest-config": "^25.5.4",
"lodash.camelcase": "^4.3.0",
Expand Down

0 comments on commit 7fbcee0

Please sign in to comment.