0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-29 06:45:43 +00:00
terraform-provider-proxmox/.github/workflows/golangci-lint.yml
Pavel Boldyrev c635044db3
chore(ci): update (#890)
* Update release-please workflow

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

* test run

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

* update metrics workflow

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

* update other workflows

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

---------

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-01-15 21:40:06 -05:00

43 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@4512585405083f25c027a35db413c2b3b9006d50 #v2.2.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