diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e232c0e41..437a0f58c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,8 +29,11 @@ jobs: - name: npm test run: npm run test-node + - name: generate coverage + run: npm run test-coverage -- --chrome $(which google-chrome-stable) --allow-chrome-as-root + if: matrix.node-version == 10 - name: code coverage - run: | - npm run test-coverage -- --chrome $(which google-chrome-stable) --allow-chrome-as-root - cat ./coverage/lcov.info | npx coveralls lib + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} if: matrix.node-version == 10