diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index eb1e169..3211329 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,13 +5,12 @@ name: Node.js CI on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: build: - runs-on: ubuntu-latest strategy: @@ -20,12 +19,16 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm run test + - name: Coveralls GitHub Action + uses: coverallsapp/github-action@1.1.3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index a085bd9..17583e6 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ ], "scripts": { "test": "jest --coverage", - "testCoveralls": "jest --coverage && coveralls < coverage/lcov.info", "doc": "node --experimental-vm-modules ./node_modules/.bin/esdoc", "deploy": "gh-pages -d docs", "prepare": "husky install"