Browse Source

ci(test): do not fail coverdata uppload if no file found

the optional make <app>-ct action should not fail the
following upload action
Zaiming (Stone) Shi 3 years ago
parent
commit
4949fb222e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      .github/workflows/run_test_cases.yaml

+ 4 - 3
.github/workflows/run_test_cases.yaml

@@ -178,16 +178,17 @@ jobs:
                 make clean
                 make clean
                 make "${WHICH_APP}-ct"
                 make "${WHICH_APP}-ct"
               else
               else
-                echo "no_common_test_run_for_app ${WHICH_APP}"
+                echo "no_common_test_run_for_app ${WHICH_APP}-ct"
               fi
               fi
             else
             else
               make "${WHICH_APP}-ct"
               make "${WHICH_APP}-ct"
             fi
             fi
-        - uses: actions/upload-artifact@v1
+        - uses: actions/upload-artifact@v3
           with:
           with:
             name: coverdata
             name: coverdata
             path: source/_build/test/cover
             path: source/_build/test/cover
-        - uses: actions/upload-artifact@v1
+            if-no-files-found: warn # do not fail if no coverdata found
+        - uses: actions/upload-artifact@v3
           if: failure()
           if: failure()
           with:
           with:
             name: logs_${{ matrix.otp_release }}
             name: logs_${{ matrix.otp_release }}