Skip to content

Commit

Permalink
ensure golines checks on the CI (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDen authored May 24, 2024
1 parent 6b8ea66 commit afb8db1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ jobs:

- name: Run golines
run: |
golines --write-output --ignored-dirs=vendor .
files=$(golines --ignored-dirs=vendor . --list-files)
if [ -n "${files}" ]; then
echo "The following files need reformatting:"
echo "${files}"
exit 1
fi
gosec:
name: gosec
Expand Down

0 comments on commit afb8db1

Please sign in to comment.