Skip to content

Commit 208e028

Browse files
committed
ci(wokwi): Fix skipped tests
1 parent 42adbee commit 208e028

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

Diff for: .github/workflows/wokwi.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
uses: actions/download-artifact@v4
6666
with:
6767
name: ${{matrix.chip}}-${{matrix.chunks}}.artifacts
68-
path: ~/.arduino/tests/
68+
path: ~/
6969
run-id: ${{github.event.workflow_run.id}}
7070
github-token: ${{env.GITHUB_TOKEN}}
7171

@@ -82,12 +82,21 @@ jobs:
8282
run: |
8383
bash .github/scripts/tests_run.sh -c -t ${{matrix.chip}} -i ${{matrix.chunks}} -m ${{env.MAX_CHUNKS}} -w ${{env.WOKWI_TIMEOUT}}
8484
85+
- name: Check if tests were skipped
86+
id: check-test-skipped
87+
run: |
88+
if [ -f ~/.test_skipped ]; then
89+
echo "skipped=true" >> $GITHUB_OUTPUT
90+
else
91+
echo "skipped=false" >> $GITHUB_OUTPUT
92+
fi
93+
8594
- name: Upload test result artifacts
8695
uses: actions/upload-artifact@v4
87-
if: always()
96+
if: ${{ always() && steps.check-test-skipped.outputs.skipped == 'false' }}
8897
with:
8998
name: wokwi_results-${{matrix.chip}}-${{matrix.chunks}}
90-
path: tests/*/*.xml
99+
path: tests/**/*.xml
91100

92101
report-result:
93102
name: Report wokwi test result

0 commit comments

Comments
 (0)