diff options
author | Balasankar 'Balu' C <balasankar@gitlab.com> | 2023-05-04 16:41:49 +0300 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2023-05-04 16:41:49 +0300 |
commit | c1e2f3332d8bd879169f1512b239874145dd2a98 (patch) | |
tree | cf30dacef059326f0dda3f3d6d2dffb4279c6a9d /.gitlab | |
parent | faa4192106dbbde4c25e7313d509ed4e3c5b61bf (diff) |
Automatically build package on all OS when dependency files are modified
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/test.yml | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/.gitlab/ci/test.yml b/.gitlab/ci/test.yml index ff373dbf..ef0fd0d2 100644 --- a/.gitlab/ci/test.yml +++ b/.gitlab/ci/test.yml @@ -72,7 +72,7 @@ check mocks: script: - make mocks-check -package-and-qa: +build-package-and-qa: stage: test trigger: project: 'gitlab-org/build/omnibus-gitlab-mirror' @@ -85,10 +85,23 @@ package-and-qa: TOP_UPSTREAM_SOURCE_PROJECT: $CI_PROJECT_PATH TOP_UPSTREAM_SOURCE_REF: $CI_COMMIT_REF_NAME TOP_UPSTREAM_SOURCE_JOB: $CI_JOB_URL - allow_failure: true + ee: "true" rules: - # Run only for merge requests + # For MRs that change dependencies, we want to automatically ensure builds + # aren't broken. In such cases, we don't want the QA tests to be run + # automatically, but still available for developers to manually run. + - if: '$CI_MERGE_REQUEST_IID' + changes: + - go.mod + - go.sum + variables: + BUILD_ON_ALL_OS: "true" + MANUAL_QA_TEST: "true" + allow_failure: false + # For other MRs, we still provide this job as a manual job for developers + # to obtain a package for testing and run QA tests. - if: '$CI_MERGE_REQUEST_IID' when: manual + allow_failure: true - when: never needs: [] |