From b9c6c007095dff0574f892c5b853eb1504576448 Mon Sep 17 00:00:00 2001 From: Jakub Date: Thu, 4 Nov 2021 16:43:55 +0100 Subject: [PATCH] GODT-1395: CI should fail on go.sum changed. --- .gitlab-ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ac11b450..d27fa2aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -85,11 +85,17 @@ dependency-updates: stage: build only: - branches + before_script: + - mkdir -p .cache/bin + - export PATH=$(pwd)/.cache/bin:$PATH + - export GOPATH="$CI_PROJECT_DIR/.cache" script: - make build + - git diff && git diff-index --quiet HEAD artifacts: - # Note: The latest artifacts for refs are locked against deletion, and kept regardless of the expiry time. - # Introduced in GitLab 13.0 behind a disabled feature flag, and made the default behavior in GitLab 13.4. + # Note: The latest artifacts for refs are locked against deletion, and kept + # regardless of the expiry time. Introduced in GitLab 13.0 behind a + # disabled feature flag, and made the default behavior in GitLab 13.4. expire_in: 1 day tags: - large