Skip to content

Commit

Permalink
support go 1.21 - 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
josephcopenhaver committed Apr 5, 2024
1 parent 236e544 commit 5e9303d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.21"]
go: ["1.21", "1.22"]
name: Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v3
Expand All @@ -19,10 +19,9 @@ jobs:
go-version: ${{ matrix.go }}
- name: verify golang files are consistently formatted and generated
run: |
[ `git status --porcelain=1 | wc -l` -eq 0 ] || (echo "failed to establish that files were unchanged before running format check" ; exit 1)
[ `git status --porcelain=1 | wc -l` -eq 0 ] || (2>&1 echo "failed to establish that files were unchanged before running go-generate check" ; exit 1)
go generate ./...
find . -type f -name '*.go' ! -path './vendor/*' -exec gofmt -l -s -w {} +
[ `git status --porcelain=1 | wc -l` -eq 0 ] || (echo "files exist that need to be formatted by gofmt" ; exit 1)
[ `git status --porcelain=1 | wc -l` -eq 0 ] || (2>&1 echo "files changed after running go-generate" ; exit 1)
- name: test without race
run: go test ./...
- name: test with race
Expand Down

0 comments on commit 5e9303d

Please sign in to comment.