From e5a2b1c756bfa279fa1dbaeb82c6f9e3e40005d1 Mon Sep 17 00:00:00 2001 From: Kesuaheli Date: Sun, 26 Nov 2023 13:37:26 +0100 Subject: [PATCH] changed order of workflow --- .github/workflows/gotest.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gotest.yml b/.github/workflows/gotest.yml index b567955..cc2ad6a 100644 --- a/.github/workflows/gotest.yml +++ b/.github/workflows/gotest.yml @@ -21,25 +21,22 @@ jobs: go-version: "1.20" - name: Set up dependencies - run: go mod download - - - name: Build - run: go build -v ./... + run: | + go mod download + go install honnef.co/go/tools/cmd/staticcheck@latest + go install golang.org/x/lint/golint@latest - name: Run go vet run: go vet -v ./... - - name: Install staticcheck - run: go install honnef.co/go/tools/cmd/staticcheck@latest - - name: Run staticcheck run: staticcheck ./... - - name: Install golint - run: go install golang.org/x/lint/golint@latest - - name: Run golint run: golint -set_exit_status ./... + - name: Build + run: go build -v ./... + - name: Run tests run: go test -v -race -vet=off ./...