mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-08-29 06:45:43 +00:00
- Update Go version from 1.23 to 1.24 in go.mod and README - Migrate documentation generation from tools/ to main.go - Update Makefile to use go generate in main.go for docs - Remove tools/ directory and related configuration - Update GitHub Actions and Renovate configuration - Simplify documentation generation process Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
46 lines
1000 B
YAML
46 lines
1000 B
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@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Filter paths
|
|
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
go:
|
|
- '**/*.go'
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
if: ${{ steps.filter.outputs.go == 'true' }}
|
|
with:
|
|
go-version-file: "go.mod"
|
|
cache-dependency-path: |
|
|
go.sum
|
|
|
|
- name: Lint code
|
|
if: ${{ steps.filter.outputs.go == 'true' }}
|
|
uses: golangci/golangci-lint-action@v6
|
|
with:
|
|
# renovate: datasource=github-releases depName=golangci/golangci-lint
|
|
version: v1.64.5
|
|
args: -v --timeout=10m
|