ci: only run integration tests when there are code changes

This prevents running the integration tests, which cause load on the CI
and take time, when the change is unrelated to pmb functionality (e.g.
documentation updates).

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2608
This commit is contained in:
Clayton Craft 2025-05-23 09:30:00 -07:00 committed by Oliver Smith
parent 15007e17d2
commit 226eeed6ff
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -127,6 +127,14 @@ deploy:
.integration:
stage: integration-test
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
changes:
- ".ci/integration_tests/**/*"
- "helpers/**/*"
- "pmb/**/*"
- .ci/integration.sh
- .gitlab-ci.yml
before_script:
- *global_before_scripts
- apk upgrade -U