From d194fbf032601002520ea406cc04b827000aa3a2 Mon Sep 17 00:00:00 2001 From: Klemek Date: Tue, 30 Mar 2021 14:56:04 +0200 Subject: [PATCH] eslint in CI --- .github/workflows/node.js.yml | 6 ++++-- package.json | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) 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 ." },