From 42eaafca5c45f5c2905f7cdca617830f24483058 Mon Sep 17 00:00:00 2001 From: Daniel Golding Date: Thu, 18 Jul 2024 07:35:22 +0200 Subject: [PATCH] ci: fix goreleaser not being found (#208) Signed-off-by: cakemanny --- .github/workflows/build-and-test.yml | 5 +++++ .github/workflows/goreleaser.yml | 4 ++-- Makefile | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index d837fcb..40471f9 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -38,6 +38,11 @@ jobs: git fetch upstream --tags fi + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '>=1.19.0' + - name: Run tests run: | make test diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index cb519a6..70b68a2 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -14,9 +14,9 @@ jobs: with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: 1.15 + go-version: '>=1.19.0' - name: Install goreleaser run: go install github.com/goreleaser/goreleaser@latest - name: Create release diff --git a/Makefile b/Makefile index b6da8b5..e82d289 100644 --- a/Makefile +++ b/Makefile @@ -58,11 +58,11 @@ ${trace_uploader}: .PHONY: cross cross: - IMAGE_NAME_TRACERUNNER=$(IMAGE_NAME_TRACERUNNER) GO111MODULE=on goreleaser --snapshot --rm-dist + IMAGE_NAME_TRACERUNNER=$(IMAGE_NAME_TRACERUNNER) GO111MODULE=on goreleaser --snapshot --clean .PHONY: release release: - IMAGE_NAME_TRACERUNNER=$(IMAGE_NAME_TRACERUNNER) GO111MODULE=on goreleaser --rm-dist + IMAGE_NAME_TRACERUNNER=$(IMAGE_NAME_TRACERUNNER) GO111MODULE=on goreleaser --clean .PHONY: clean clean: