ci(gl): run build & test jobs in MR

This commit is contained in:
Ming Di Leom 2025-01-21 10:45:32 +00:00
parent 86ece47eca
commit 3b8006dfd4
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@ build:
- npm run build - npm run build
rules: rules:
# Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job # Only trigger through push & "Run pipeline" events only in the master branch; Skip in renovate job; Merge request where master branch is the target
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "pipeline")' - if: '$RENOVATE != "true" && (($CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "pipeline")) || ($CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"))'
when: always when: always
artifacts: artifacts:
@ -37,7 +37,7 @@ test:
- sh check-homepage.sh - sh check-homepage.sh
rules: rules:
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "pipeline")' - if: '$RENOVATE != "true" && (($CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "pipeline")) || ($CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"))'
when: always when: always
artifacts: artifacts: