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

index 4caa5d1c19134b10c5801a2a1c20a9bff4c1fdaa..d38f3cc5e7cd513c4333f3beb55c66cb5c25d938 100644 (file)
@@ -26,10 +26,10 @@ jobs:
         run: npm run lint
         continue-on-error: true
       - name: npm run build
-        if: "matrix.os == 'ubuntu-latest' && matrix.os == 'macos-latest'"
+        if: "matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'"
         run: npm run build
       - name: npm test
-        if: "matrix.os == 'ubuntu-latest' && matrix.os == 'macos-latest'"
+        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'"