diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index ba2df1a..a6e07b1 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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 }}" diff --git a/package.json b/package.json index 45af106..abcada1 100644 --- a/package.json +++ b/package.json @@ -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 ." },