Skip to content

Commit a3f947a

Browse files
committed
Fail sketch compile workflow if report not found
The "arduino/compile-sketches` GitHub Actions action generates a report of the results of the compilations as a JSON file. This file is uploaded as a workflow run artifact, which is later consumed by the `arduino/report-size-deltas` action. By default, the `actions/upload-artifact` used for the upload step does not require the target file to exist. In this usage, the report file should always exist. If not, it indicates something is seriously wrong and the workflow run should fail to bring this to our attention rather than silently ignoring it.
1 parent f10759c commit a3f947a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/compile-examples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
uses: actions/upload-artifact@v2
104104
with:
105105
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
106+
if-no-files-found: error
106107
path: ${{ env.SKETCHES_REPORTS_PATH }}
107108

108109
report-size-deltas:

0 commit comments

Comments
 (0)