0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-06 22:14:01 +00:00
terraform-provider-proxmox/.github/workflows/golangci-lint.yml
renovate[bot] d444202ab8
chore(ci): update dorny/paths-filter action (v3.0.0 → v3.0.1) (#1032)
| datasource  | package            | from   | to     |
| ----------- | ------------------ | ------ | ------ |
| github-tags | dorny/paths-filter | v3.0.0 | v3.0.1 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-16 00:41:02 +00:00

42 lines
889 B
YAML

name: Linter
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: read
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Filter paths
uses: dorny/paths-filter@ebc4d7e9ebcb0b1eb21480bb8f43113e996ac77a # v3.0.1
id: filter
with:
filters: |
go:
- '**/*.go'
- 'tools/go.mod'
- name: Setup Go
uses: actions/setup-go@v5
if: steps.filter.outputs.go == 'true'
with:
go-version-file: "go.mod"
- name: Lint code
if: steps.filter.outputs.go == 'true'
run: |
go run -modfile=tools/go.mod github.com/golangci/golangci-lint/cmd/golangci-lint run -v --timeout 5m