Skip to content

Commit

Permalink
Update workflows to use go version from mod file, and update GH actio…
Browse files Browse the repository at this point in the history
…n version
  • Loading branch information
scosman committed May 2, 2023
1 parent 3a8b528 commit bb35d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version-file: go.mod

- name: Go format check
run: if [ "$(gofmt -d -l $(find . -type f -name '*.go'| grep -v "/vendor/\|/.git/") | wc -l)" -gt 0 ]; then exit 1; fi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version-file: go.mod

- name: Build
run: go build -v ./...
Expand Down

0 comments on commit bb35d16

Please sign in to comment.