2024-06-07 11:30:31 -05:00
|
|
|
name: golangci-lint
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- pkg/**
|
|
|
|
- .github/workflows/go_lint.yml
|
|
|
|
- go.*
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint-go:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
|
|
with:
|
|
|
|
go-version-file: ./go.mod
|
|
|
|
- run: CODEGEN_VERIFY=1 make gen-cue
|
|
|
|
- run: make gen-go
|
|
|
|
- name: golangci-lint
|
2024-06-14 07:42:09 -05:00
|
|
|
uses: golangci/golangci-lint-action@v6
|
2024-06-07 11:30:31 -05:00
|
|
|
with:
|
2024-08-21 10:40:42 -05:00
|
|
|
version: v1.60.1
|
2024-06-07 12:54:47 -05:00
|
|
|
args: |
|
2024-08-21 10:40:42 -05:00
|
|
|
--config .golangci.toml --max-same-issues=0 --max-issues-per-linter=0 --verbose $(./scripts/go-workspace/golangci-lint-includes.sh)
|
2024-06-07 11:30:31 -05:00
|
|
|
skip-cache: true
|
|
|
|
install-mode: binary
|