Fix integration tests running when deploy fails
Changed 'when: always' to 'when: on_success' in integration test rules. This ensures tests only run after successful deployments, not after failures where they would hit stale environments.
This commit is contained in:
@@ -102,7 +102,7 @@ integration_test_stage:
|
||||
BASE_URL: https://orchard-stage.common.global.bsf.tools
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "main"'
|
||||
when: always
|
||||
when: on_success
|
||||
|
||||
# Integration tests for feature deployment
|
||||
integration_test_feature:
|
||||
@@ -112,7 +112,7 @@ integration_test_feature:
|
||||
BASE_URL: https://orchard-$CI_COMMIT_REF_SLUG.common.global.bsf.tools
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != "main"'
|
||||
when: always
|
||||
when: on_success
|
||||
|
||||
# Run Python backend tests
|
||||
python_tests:
|
||||
|
||||
Reference in New Issue
Block a user