Fix CI conditions on jobs
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 15 Oct 2022 15:33:41 +0000 (17:33 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 15 Oct 2022 15:33:41 +0000 (17:33 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml

index 5cb56c81397a07dc9d26eed770504541cd4a4651..4caa5d1c19134b10c5801a2a1c20a9bff4c1fdaa 100644 (file)
@@ -26,10 +26,10 @@ jobs:
         run: npm run lint
         continue-on-error: true
       - name: npm run build
-        if: "matrix.os != 'windows-latest' || (matrix.node != '16.x' && matrix.node != '18.x)"
+        if: "matrix.os == 'ubuntu-latest' && matrix.os == 'macos-latest'"
         run: npm run build
       - name: npm test
-        if: "matrix.os != 'windows-latest' || (matrix.node != '16.x' && matrix.node != '18.x)"
+        if: "matrix.os == 'ubuntu-latest' && matrix.os == 'macos-latest'"
         run: npm test
       - name: npm run coverage
         if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"