From 2f2890c0937ab878d1ef530158dcdeb839941fbc Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Mon, 18 Jan 2021 23:38:23 -0500 Subject: [PATCH] Tweak build action --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 090bcdda..0bd421d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,16 +14,17 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: + - run: sudo su - name: Set up Go 1.15 uses: actions/setup-go@v2 with: go-version: 1.15 + - run: go version && which go + - run: sudo go version && sudo which go - name: Check out code into the Go module directory uses: actions/checkout@v2 - name: Build binary to make sure it works run: go build -mod vendor - - run: go version && which go - - run: sudo go version && sudo which go - name: Test run: sudo go test -mod vendor ./... -race -coverprofile=coverage.txt -covermode=atomic - name: Codecov