Fix cross OS CI GH actions
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 14 Oct 2022 19:03:26 +0000 (21:03 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 14 Oct 2022 19:03:26 +0000 (21:03 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml
.github/workflows/npmpublish.yml

index 075e84949687a77e824870ece8c7c73ad79a1061..8cd177af39cfdaf64fc19bd9845e079629a13674 100644 (file)
@@ -41,17 +41,17 @@ jobs:
       - name: Lint
         run: npm run lint
 
-      - name: Tests & Coverage
-        if: matrix.node == '16.x'
+      - name: Tests
+        run: npm run test
+
+      - name: Coverage & Linter Reports
+        if: "github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
         run: |
-          npm run test
           npm run coverage
           npm run lint:report
-        env:
-          CI: true
 
       - name: Sonar Code Analysis
-        if: "github.repository == 'poolifier/poolifier' && matrix.node == '16.x'"
+        if: "github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
         uses: sonarsource/sonarcloud-github-action@master
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
index 7068c27db1c1c5efcaa99884a446d2298d4dba1b..6b1a3731c6e8678da4fb2320daf009eb9055ad87 100644 (file)
@@ -24,8 +24,6 @@ jobs:
         run: |
           npm run test
           npm run coverage
-        env:
-          CI: true
 
       - name: Lint
         run: npm run lint