acoustic-spring-13969
08/07/2025, 11:15 AMci.yaml
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Pants Caching
uses: pantsbuild/actions/init-pants@main
with:
gha-cache-key: v0
named-caches-hash: ""
cache-lmdb-store: 'true'
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
cache-dependency-path: |
./go.sum
- name: Pants Lint
run: pants lint --changed-since=origin/${{ github.base_ref }}
pants.ci.toml
[GLOBAL]
pants_version = "2.28.0"
backend_packages = [
"pants.backend.experimental.go",
"pants.backend.experimental.go.lint.vet",
"pants.backend.docker.lint.hadolint",
"pants.backend.experimental.tools.trufflehog"
]
[golang]
minimum_expected_version = "1.21"
extra_tools = ['git']
[go-test]
[go-vet]
[gofmt]
[golangci-lint]
[trufflehog]
args = [
"--json",
"--concurrency=20",
]
happy-kitchen-89482
08/14/2025, 6:52 AM