Skip to content

Commit

Permalink
Update actions/* actions (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
madhead authored Oct 12, 2022
1 parent c9426ba commit fe96353
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand All @@ -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
Expand Down

0 comments on commit fe96353

Please sign in to comment.