Skip to content

eberle1080 is running the linter #19563

eberle1080 is running the linter

eberle1080 is running the linter #19563

Workflow file for this run

name: Linter
run-name: ${{ github.actor }} is running the linter
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.26.1"
cache: false
- name: Generate go code
run: go generate ./...
- name: Install dependencies
run: go install github.com/daixiang0/gci@latest
# Ensure that the linter version matches with ".custom-gcl.yml".
- name: Install golangci-lint
run: |
LINTER_VERSION="v2.7.1"
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin $LINTER_VERSION
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Build custom golangci-lint with custom linters
run: make custom-gcl
- name: Lint Go code
run: make lint