0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-22 19:38:35 +00:00
terraform-provider-proxmox/.github/workflows/golangci-lint.yml
renovate[bot] 292811bdde
chore(deps): update golangci/golangci-lint (#1834)
* chore(deps): update golangci/golangci-lint

| datasource      | package                | from    | to      |
| --------------- | ---------------------- | ------- | ------- |
| github-releases | golangci/golangci-lint | v1.64.7 | v1.64.8 |
| github-releases | golangci/golangci-lint | 1.64.7  | 1.64.8  |

* Fix golangci-lint version format in workflow

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

---------

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2025-03-19 22:33:58 -04:00

47 lines
1.2 KiB
YAML

name: Linter
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: read
jobs:
golangci-lint:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Filter paths
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
go:
- '**/*.go'
linter:
- .github/workflows/golangci-lint.yml
- name: Setup Go
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
if: ${{ steps.filter.outputs.go == 'true' || steps.filter.outputs.linter == 'true'}}
with:
go-version-file: "go.mod"
cache-dependency-path: |
go.sum
- name: Lint code
if: ${{ steps.filter.outputs.go == 'true' || steps.filter.outputs.linter == 'true'}}
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6
with:
version: v1.64.8 ## renovate: datasource=github-releases depName=golangci/golangci-lint
args: -v --timeout=10m