From c24dd440284b57cc55d7386dab068e134ef8702d Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Fri, 9 Jun 2023 11:25:17 -0400 Subject: [PATCH] This should fix the Github Action --- .github/workflows/release.yml | 4 ++-- Makefile | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29b666d..10077da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.20 + go-version: ">=1.20.0" - name: Test run: make test @@ -36,7 +36,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.20 + go-version: ">=1.20.0" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/Makefile b/Makefile index 4988a8b..ed76378 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,18 @@ BINARY_NAME=obp build-all: - go version GOOS=darwin GOARCH=amd64 go build -o bin/${BINARY_NAME}-darwin cmd/obp/*.go GOOS=linux GOARCH=amd64 go build -o bin/${BINARY_NAME}-linux cmd/obp/*.go GOOS=windows GOARCH=amd64 go build -o bin/${BINARY_NAME}-windows.exe cmd/obp/*.go clean-all: - go version go clean rm bin/${BINARY_NAME}-darwin rm bin/${BINARY_NAME}-linux rm bin/${BINARY_NAME}-windows.exe test: - go version - go mod tidy go test ./... test_coverage: - go version - go mod tidy go test ./... -coverprofile=coverage.out