From 3fcbb6735e8cd7ca6508dcfeed130a0a86980ab5 Mon Sep 17 00:00:00 2001 From: Sina M <1591639+s1na@users.noreply.github.com> Date: Tue, 28 Jan 2025 18:56:20 +0100 Subject: [PATCH] .github: add lint step (#31068) --- .github/workflows/go.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6406d2fa3d..d1d2579dff 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -8,6 +8,30 @@ on: workflow_dispatch: jobs: + lint: + name: Lint + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + + # Cache build tools to avoid downloading them each time + - uses: actions/cache@v4 + with: + path: build/cache + key: ${{ runner.os }}-build-tools-cache-${{ hashFiles('build/checksums.txt') }} + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.23.0 + cache: false + + - name: Run linters + run: | + go run build/ci.go lint + go run build/ci.go check_tidy + go run build/ci.go check_baddeps + build: runs-on: self-hosted steps: