Refine CI GitHub actions
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 15 Oct 2022 16:25:36 +0000 (18:25 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 15 Oct 2022 16:25:36 +0000 (18:25 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml

index d38f3cc5e7cd513c4333f3beb55c66cb5c25d938..9d62b62f3606f66f88a9a5201f8c4b8570156e1b 100644 (file)
@@ -27,7 +27,7 @@ jobs:
         continue-on-error: true
       - name: npm run build
         if: "matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'"
-        run: npm run build
+        run: npm run build --if-present
       - name: npm test
         if: "matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'"
         run: npm test
@@ -63,7 +63,7 @@ jobs:
         run: npm run lint
         continue-on-error: true
       - name: npm run build
-        run: npm run build
+        run: npm run build --if-present
       - name: npm test
         run: npm test
       # - name: npm run coverage