Limit CI testing to relevant changes

This modification to the CI config should cause the test-build job
to be added to the pipeline only if changes are present which impact
the build of veilid-core/server/cli.

If successfull this will reduce the number of irrelevant test runs,
such as when .gitlab-ci.yml or instructional files are modified,
but still run Semgrep against all file changes.
[ci skip]
This commit is contained in:
TC Johnson 2024-12-25 09:43:47 -06:00
parent 2cf82dd7b8
commit e7625cd587

View File

@ -92,6 +92,9 @@ test_build:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_PIPELINE_SOURCE == "push"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- changes:
- veilid-*/**
- '**/*[Cc]argo*'
semgrep:
# A Docker image with Semgrep installed.