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 32cbbbe
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,23 @@ 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: test -z "$(gofumpt -l .)"

staticcheck:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 32cbbbe

Please sign in to comment.