From a43d2351aeb8afc230d67a115abf4fd571f14343 Mon Sep 17 00:00:00 2001 From: birdbird <6892457-tzugen@users.noreply.gitlab.com> Date: Sun, 19 Mar 2023 09:32:30 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0bcbd0fa..3918daff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,6 +30,10 @@ stages: Check Style: stage: Check script: ./gradlew -Pqc ktlintCheck + cache: + # inherit all global cache settings + <<: *global_cache + policy: pull rules: - if: $CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_TAG || $CI_PROJECT_ID != "37671564" @@ -59,7 +63,7 @@ Unit Tests: cache: # inherit all global cache settings <<: *global_cache - policy: pull + policy: pull-push rules: - if: $CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_TAG || $CI_PROJECT_ID != "37671564"