eslint in CI

This commit is contained in:
Klemek
2021-03-30 14:56:04 +02:00
parent e9d67985a6
commit d194fbf032
2 changed files with 7 additions and 2 deletions
+4 -2
View File
@@ -19,10 +19,12 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- name: ESLint
run: npm run test-lint
- name: Jest
run: ./node_modules/.bin/jest --silent -i --coverage
run: npm run test-cov
- name: Coveralls
run: ./node_modules/.bin/coveralls --verbose < coverage/lcov.info
run: npm run coveralls
env:
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
COVERALLS_GIT_BRANCH: "${{ github.ref }}"
+3
View File
@@ -28,6 +28,9 @@
"scripts": {
"start": "node src/server.js",
"test": "jest --silent -i",
"test-cov": "jest --silent -i --coverage",
"coveralls": "coveralls < coverage/lcov.info",
"test-lint": "eslint .",
"install": "node src/postinstall.js",
"lint": "eslint --fix ."
},