Skip to content

Commit 2dfbcdf

Browse files
committed
update: don't fail on skipped suites
- Only upload artifacts on test failure
1 parent 90d60fe commit 2dfbcdf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ runs:
117117
VALID_CHECK_NAME=$(echo '${{ inputs.check-name-suffix }}' | sed "s|/|__|g")
118118
echo "VALID_CHECK_NAME=$VALID_CHECK_NAME" | tee -a "$GITHUB_ENV"
119119
120-
# TODO: Figure out a generic way to get the app server logs here too
121-
- if: always()
120+
- if: failure()
122121
name: Upload artifacts
123122
uses: actions/upload-artifact@v4
124123
with:
@@ -136,7 +135,7 @@ runs:
136135
detailed_summary: true
137136
# Group the testcases by test suite in the detailed_summary
138137
group_suite: true
139-
# Fail if no test are found.
140-
require_tests: true
138+
# Don't fail if no test are found.
139+
require_tests: false
141140
# Fail the build in case of a test failure.
142141
fail_on_failure: true

0 commit comments

Comments
 (0)