diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a138b8..0f075b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,8 +15,9 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: go.mod + - name: fmt - run: | + run: | make fmt git diff --exit-code || (echo "::error::Code is not formatted. Run 'make fmt' and commit the changes." && exit 1)