Skip to content
11 changes: 11 additions & 0 deletions .github/actions/go-linter/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,14 @@ runs:
version: 2025.1.1
install-go: false
working-directory: ${{ inputs.working-directory }}

- name: Check gofmt formatting
Comment thread
comatory marked this conversation as resolved.
run: |
files=$(gofmt -l .)
if [ -n "$files" ]; then
echo "The following files are not gofmt-formatted:"
echo "$files"
exit 1
fi
shell: bash
working-directory: ${{ inputs.working-directory }}
Comment thread
dkorittki marked this conversation as resolved.
Loading