This should fix the Github Action

main v0.0.6
Nick Dumas 2 years ago
parent 721faf7cfa
commit c24dd44028

@ -19,7 +19,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.20 go-version: ">=1.20.0"
- name: Test - name: Test
run: make test run: make test
@ -36,7 +36,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.20 go-version: ">=1.20.0"
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2 uses: goreleaser/goreleaser-action@v2
with: with:

@ -1,24 +1,18 @@
BINARY_NAME=obp BINARY_NAME=obp
build-all: build-all:
go version
GOOS=darwin GOARCH=amd64 go build -o bin/${BINARY_NAME}-darwin cmd/obp/*.go 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=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 GOOS=windows GOARCH=amd64 go build -o bin/${BINARY_NAME}-windows.exe cmd/obp/*.go
clean-all: clean-all:
go version
go clean go clean
rm bin/${BINARY_NAME}-darwin rm bin/${BINARY_NAME}-darwin
rm bin/${BINARY_NAME}-linux rm bin/${BINARY_NAME}-linux
rm bin/${BINARY_NAME}-windows.exe rm bin/${BINARY_NAME}-windows.exe
test: test:
go version
go mod tidy
go test ./... go test ./...
test_coverage: test_coverage:
go version
go mod tidy
go test ./... -coverprofile=coverage.out go test ./... -coverprofile=coverage.out

Loading…
Cancel
Save