Merge pull request #65 from pioardi/dependabot/npm_and_yarn/standard-16.0.2
[poolifier.git] / .github / workflows / main.yml
index b351307a1d837ff9d94be03130d4d06c533963d9..7469978eecdeb7dd9c6f67de37d62b8c23666e64 100644 (file)
@@ -1,6 +1,6 @@
 name: NodeCI
 
-on: [push]
+on: [push, pull_request]
 
 jobs:
   build:
@@ -9,7 +9,7 @@ jobs:
 
     strategy:
       matrix:
-        node-version: [10.x, 12.x]
+        node-version: [12.x, 14.x]
 
     steps:
     - uses: actions/checkout@v1
@@ -22,5 +22,7 @@ jobs:
         npm ci
         npm run build --if-present
         npm run test
+        export COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }}
+        npm run coverage
       env:
         CI: true