fix: go version update in github workflow to match go.mod, add go fmt… #961
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.2 | |
- name: Build | |
run: | | |
go build | |
- name: Test | |
run: go test ./... | |
- name: Test `go fmt` creates no diffs | |
run: go fmt && git diff --exit-code |