From fe96353a0323524af45dfddc38cd859da48b211c Mon Sep 17 00:00:00 2001 From: Siarhei Date: Wed, 12 Oct 2022 15:11:04 +0200 Subject: [PATCH] Update `actions/*` actions (#340) --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43b1f85d..f3b38878 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,19 +15,18 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v3 with: go-version: ${{matrix.go}} id: go - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Lint code run: | gofiles=$(find ./ -name '*.go') && [ -z "$gofiles" ] || unformatted=$(goimports -l $gofiles) && [ -z "$unformatted" ] || (echo >&2 "Go files must be formatted with gofmt. Following files has problem: $unformatted" && true); diff <(echo -n) <(gofmt -s -d .) - export PATH=$PATH:$(go env GOPATH)/bin # temporary fix. See https://github.com/actions/setup-go/issues/14 go get -u golang.org/x/lint/golint golint ./... @@ -46,7 +45,6 @@ jobs: - name: Upload coverage to codecov run: | - export PATH=$PATH:$(go env GOPATH)/bin # temporary fix. See https://github.com/actions/setup-go/ go get github.com/modocache/gover; echo "" > coverage.txt gover