Skip to content

Commit

Permalink
Add a golines Github action to format long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
djjuhasz committed Apr 13, 2024
1 parent 0f205f3 commit ae3dbb2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ jobs:
run: make lint
env:
GOLANGCI_LINT_CACHE: ${{ runner.temp }}/golangci-lint-cache
golines:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Read Go version
id: go_version
run: echo "go_version=$(cat .go-version)" >> $GITHUB_OUTPUT
- name: Install Go (${{ steps.go_version.outputs.go_version }})
uses: actions/setup-go@v5
with:
go-version: ${{ steps.go_version.outputs.go_version }}
- name: Run golines
run: make golines
shfmt:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit ae3dbb2

Please sign in to comment.