Skip to content

golangci-lint

golangci-lint #4063

Workflow file for this run

name: golangci-lint
on:
merge_group:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
golangci:
strategy:
fail-fast: false
matrix:
goos: ["linux", "windows"]
goarch: ["amd64", "arm64"]
name: Lint
runs-on: ubuntu-latest
env:
IS_NOT_MERGE_GROUP: ${{ github.event_name != 'merge_group' }}
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
steps:
- uses: actions/checkout@v4
if: env.IS_NOT_MERGE_GROUP
with:
fetch-depth: 0
- uses: actions/setup-go@v5
if: env.IS_NOT_MERGE_GROUP
with:
go-version-file: go.mod
- name: golangci-lint
if: env.IS_NOT_MERGE_GROUP
uses: golangci/golangci-lint-action@v6
with:
version: v1.55
args: --concurrency 4 --verbose --config=.golangci.yaml --timeout=25m
only-new-issues: true
skip-cache: true