From 839ea036c2a32d8f1ab3896272474cd56778d579 Mon Sep 17 00:00:00 2001 From: bvanvugt <1531419+bvanvugt@users.noreply.github.com> Date: Mon, 20 Feb 2023 00:31:41 +0000 Subject: [PATCH] Revert test workflow changes (gopath is broken) --- .github/workflows/test.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7f7cfb..10a6277 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,8 @@ jobs: with: go-version: '${{ env.GO_VERSION }}' check-latest: true - - run: make test-format + - name: Run gofmt + run: test -z $(gofmt -l .) || (gofmt -d . && exit 1) lint: name: Lint (golangci-lint) @@ -33,10 +34,13 @@ jobs: with: go-version: '${{ env.GO_VERSION }}' check-latest: true - - run: make test-lint + - name: Run golangci-lint + run: | + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.1 + golangci-lint run -v ./... test: - name: Tests (go test) + name: Test (go test) runs-on: ubuntu-latest needs: [lint] steps: @@ -45,7 +49,8 @@ jobs: with: go-version: '${{ env.GO_VERSION }}' check-latest: true - - run: make test-unit + - name: Run go test + run: go test -race ./... build-cli: name: Build CLI (go build) @@ -57,6 +62,7 @@ jobs: with: go-version: '${{ env.GO_VERSION }}' check-latest: true - - run: | - make build-cli - battlesnake --help + - name: Run go build + run: | + go build ./cli/battlesnake + ./battlesnake --help