From d0fdc11574fb5ec032b3d9577e4476121951a9d5 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 8 Nov 2024 12:08:50 +0100 Subject: [PATCH] ci: download go tools before running them --- .github/workflows/build.yml | 3 +++ .github/workflows/release.yml | 3 +++ .gitlab-ci.yml | 1 + 3 files changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d2ca99a..bdbb427b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,9 @@ jobs: with: go-version: "1.23" + - name: Download tools + run: go -C ./tools mod download + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57fabcb4..878764d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,9 @@ jobs: with: go-version: "1.23" + - name: Download tools + run: go -C ./tools mod download + - name: Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@v6 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bcf19993..c6a8f53a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ build: script: - go env - go mod download + - go -C ./tools mod download test:lint: stage: test