Only run GitHub CI code coverage when needed
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 4 Jun 2022 10:15:09 +0000 (12:15 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 4 Jun 2022 10:15:09 +0000 (12:15 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml

index b228e89a8e55e2beab6f9e9192a64be0f367572f..547c24ec49c787f76ff0224c4f0d3745e47c6eaf 100644 (file)
@@ -30,7 +30,7 @@ jobs:
       - name: npm test
         run: npm test
       - name: npm run coverage
-        if: "matrix.os != 'windows-latest'"
+        if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
         run: npm run coverage
       - name: SonarCloud Scan
         if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"