Merge branch 'limit-ci-testing' into 'main'

Looks like I had the logic a little off. Changes needs to be a condition...

See merge request veilid/veilid!341
This commit is contained in:
TC 2024-12-27 16:23:39 +00:00
commit 2549d210ae

View File

@ -85,27 +85,28 @@ test_build:
- earthly --use-inline-cache +unit-tests-linux --BASE=container $project_args - earthly --use-inline-cache +unit-tests-linux --BASE=container $project_args
resource_group: test resource_group: test
rules: rules:
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
when: never
- if: $IS_NIGHTLY == "true"
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_PIPELINE_SOURCE == "push" changes:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- changes:
- veilid-*/** - veilid-*/**
- '**/*[Cc]argo*' - '**/*[Cc]argo*'
when: always
- if: $CI_PIPELINE_SOURCE == "push"
changes:
- veilid-*/**
- '**/*[Cc]argo*'
when: always
- when: never
semgrep: semgrep:
# A Docker image with Semgrep installed. # A Docker image with Semgrep installed.
image: semgrep/semgrep image: semgrep/semgrep
rules: rules:
# Scan changed files in MRs, (diff-aware scanning): - if: $CI_PIPELINE_SOURCE == "merge_request_event" # Include all merge requests
- if: $CI_MERGE_REQUEST_IID - if: $CI_PIPELINE_SOURCE == "push" # Include all commits
- if: $CI_PIPELINE_SOURCE == "schedule" # Optionally include scheduled pipelines
# Scan mainline (default) branches and report all findings. - when: always # Ensure it runs if the pipeline is triggered for any other reason
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables: variables:
# Connect to Semgrep AppSec Platform through your SEMGREP_APP_TOKEN. # Connect to Semgrep AppSec Platform through your SEMGREP_APP_TOKEN.