From 4f2b20a0e2ba5d9cc0bb618390dae80aba74cd0e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 26 Sep 2024 10:50:01 +0200 Subject: [PATCH] ci: run go generate during tests and check for differences --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 962feda..0d4fe6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,6 +36,12 @@ jobs: go mod tidy git diff --exit-code + - name: Generate + if: ${{ matrix.go-version == '1.23' }} + run: | + go generate + git diff --exit-code + - name: Test (native) run: go test -v ./...