diff options
| author | mo khan <mo@mokhan.ca> | 2024-06-05 12:05:41 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-06-05 12:05:41 -0600 |
| commit | 9d425f05f2eb8d16a89d2038c316be8209d17da9 (patch) | |
| tree | e9c92a901639bac8c34bf287b0bf6b901c772743 | |
| parent | ecd4e6ea2b4af6b00406b6c93fe35b3211250a36 (diff) | |
Install mage before all CI jobs
| -rw-r--r-- | .gitlab-ci.yml | 10 |
1 files 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 |
