-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
GH Actions:change test selection parameter #12710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Test Results (amd64) - Integration, Bootstrap 5 files ±0 5 suites ±0 2h 21m 44s ⏱️ -16s Results for commit 472ffcb. ± Comparison against base commit 8b3dcdd. This pull request removes 1 and adds 3 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
This reverts commit 28b4432.
@@ -76,7 +76,7 @@ jobs: | |||
# default "disableCaching" to `false` if it's a push or schedule event | |||
disableCaching: ${{ inputs.disableCaching == true }} | |||
# default "disableTestSelection" to `true` if it's a push or schedule event | |||
disableTestSelection: ${{ inputs.enableTestSelection != true }} | |||
disableTestSelection: ${{ (inputs.enableTestSelection != '' && inputs.enableTestSelection) || github.event_name == 'push' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inputs.enableTestSelection
will be an empty string if the workflow is triggered automatically. I think this deifinition version (inputs.enableTestSelection != '' && inputs.enableTestSelection)
makes our intentions clearer: use the input value if it's defined, or use the push event as a fallback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Motivation
This PR corrects the condition for applying test selection. Test selection should be enabled for pull requests, while it remains disabled by default for manual and scheduled runs.
Changes
disableTestSelection
which is propagated toaws-tests.yml