From e8d6dee9ac3fd04e5961a1614bb2c08f99e19815 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Tue, 14 Jun 2022 22:20:15 +0200 Subject: [PATCH] CI: run the new test script on gitlab We only need one runner and it should use the internal network for access to all repositories. Set a rule so it doesn't run on 'main' (makes no sense). Set git depth to 500: We need a long history in order to find the merge-base between the PR and 'main'. It's unclear whether there's a straightforward way to find the depth of the PR to limit the clone depth accurately. 500 should be enough for any PR (I'd hate to see a PR that makes this statement false). --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 023a0d0dc..243f2f587 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -622,6 +622,21 @@ Installer: #- rhos-01/rhel-9.0-nightly-x86_64 - rhos-01/centos-stream-9-x86_64 +Manifest-diff: + stage: test + extends: .terraform + rules: + # don't run on main + - if: '$CI_COMMIT_BRANCH != "main"' + script: + - ./test/cases/diff-manifests.sh + variables: + RUNNER: aws/rhel-9.0-ga-x86_64 + INTERNAL_NETWORK: "true" + GIT_STRATEGY: "clone" + GIT_CHECKOUT: "true" + GIT_DEPTH: 500 + SCHEDULED_CLOUD_CLEANER: stage: cleanup tags: