eslint in CI
This commit is contained in:
@@ -19,10 +19,12 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build --if-present
|
- run: npm run build --if-present
|
||||||
|
- name: ESLint
|
||||||
|
run: npm run test-lint
|
||||||
- name: Jest
|
- name: Jest
|
||||||
run: ./node_modules/.bin/jest --silent -i --coverage
|
run: npm run test-cov
|
||||||
- name: Coveralls
|
- name: Coveralls
|
||||||
run: ./node_modules/.bin/coveralls --verbose < coverage/lcov.info
|
run: npm run coveralls
|
||||||
env:
|
env:
|
||||||
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
|
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
|
||||||
COVERALLS_GIT_BRANCH: "${{ github.ref }}"
|
COVERALLS_GIT_BRANCH: "${{ github.ref }}"
|
||||||
|
|||||||
@@ -28,6 +28,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node src/server.js",
|
"start": "node src/server.js",
|
||||||
"test": "jest --silent -i",
|
"test": "jest --silent -i",
|
||||||
|
"test-cov": "jest --silent -i --coverage",
|
||||||
|
"coveralls": "coveralls < coverage/lcov.info",
|
||||||
|
"test-lint": "eslint .",
|
||||||
"install": "node src/postinstall.js",
|
"install": "node src/postinstall.js",
|
||||||
"lint": "eslint --fix ."
|
"lint": "eslint --fix ."
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user