Skip to content

chore: run golines & gofumpt #131

chore: run golines & gofumpt

chore: run golines & gofumpt #131

Workflow file for this run

name: Lint
on:
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.22.x
- name: Install Golines and GoFumpt
run: |
go install github.com/segmentio/golines@latest
go install mvdan.cc/gofumpt@latest
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout 5m0s --verbose
- name: verify linters didn't make any change
run: |
changed_files=$(git status -s)
[[ -z "$changed_files" ]] || (printf "Change is detected in some files: \n$changed_files\n Did you run 'make lint' before sending the PR?" && exit 1)