From 9671bdf12ac0c16b2d70cbd5122981c5ff77e29a Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Fri, 12 Jan 2024 21:56:24 +0100 Subject: [PATCH] Check in CI that running "go generate" was not forgotten --- .github/workflows/build.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a220683..e341f27 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,6 +11,10 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@8a218f9e264e9c3803c9a1ee1c30d8e4ab55be63 with: diagnostic-endpoint: + - name: No diff + run: | + nix develop -c go generate ./... + git diff-index --quiet HEAD -- - name: Build run: | nix build --print-build-logs