From 9d425f05f2eb8d16a89d2038c316be8209d17da9 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 5 Jun 2024 12:05:41 -0600 Subject: Install mage before all CI jobs --- .gitlab-ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index baa40d7..9cec69e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,9 @@ image: golang:alpine +before_script: + - apk add --no-cache git + - go install github.com/magefile/mage@latest + stages: - build - test @@ -10,16 +14,10 @@ go_build: GOOS: linux GOARCH: amd64 CGO_ENABLED: 0 - before_script: - - apk add --no-cache git script: - - go install github.com/magefile/mage@latest - mage build go_test: stage: test - before_script: - - apk add --no-cache git script: - - go install github.com/magefile/mage@latest - mage test -- cgit v1.2.3