Skip to content

Commit

Permalink
feat: add go linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed May 12, 2024
1 parent 11e8e7b commit 5d7a7a4
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 @@ -12,3 +12,20 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .

go:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Check formatting
run: go fmt ./...
- name: Check linting
run: go vet ./...
- name: Check golines
run: go get -u github.com/segmentio/golines
run: golines -w .

0 comments on commit 5d7a7a4

Please sign in to comment.