You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have several testing jobs that I run in separate jobs. Out of those I run integration tests in a matrix to speed things up. Now, these integration tests might change in time so I don't want to set the required checks for each one of them. Hence I create a job tests-passed and I require all previous jobs via needs. Something like:
test-passed:
runs-on: ubuntu-latest
needs:
- "unit-tests"
- "integration-tests"
- "conformance-tests"
if: always()
steps:
- name: Set workflow outcome based on unit-tests
if: needs.unit-tests.result == 'failure' || needs.unit-tests.result == 'cancelled'
run: ${{ false }}
- name: Set workflow outcome based on integration-tests
if: needs.integration-tests.result == 'failure' || needs.integration-tests.result == 'cancelled'
run: ${{ false }}
- name: Set workflow outcome based on conformance-tests
if: needs.conformance-tests.result == 'failure' || needs.conformance-tests.result == 'cancelled'
run: ${{ false }}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's say I have several testing jobs that I run in separate jobs. Out of those I run integration tests in a matrix to speed things up. Now, these integration tests might change in time so I don't want to set the required checks for each one of them. Hence I create a job
tests-passed
and I require all previous jobs vianeeds
. Something like:This is a workaround for the fact that ref
Can I achieve this differently, ideally in a way that doesn't require scheduling a runner just to set the status?
Beta Was this translation helpful? Give feedback.
All reactions