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 062003c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,24 @@ 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 ./...
working-directory: ./tests/go
- name: Check linting
run: go vet ./...
working-directory: ./tests/go
- name: Check golines
run: |
go install -u github.com/segmentio/golines
golines -w .
working-directory: ./tests/go

0 comments on commit 062003c

Please sign in to comment.