Skip to content

Commit

Permalink
run gofumpt in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed May 1, 2024
1 parent d7358e2 commit 62db2d9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,26 @@ permissions:
contents: read

jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"

- name: Clone repository
uses: actions/checkout@v4

- name: Set up gofumpt
run: go install mvdan.cc/gofumpt@latest

- name: Run gofumpt
run: |
non_formatted_files="$(gofumpt -l .)"
echo "$non_formatted_files"
test -z "$non_formatted_files"
staticcheck:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 62db2d9

Please sign in to comment.