mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-08-22 19:38:35 +00:00
* chore(ci): update actions/checkout digest (11bd719 → 08eba0b) * chore(ci): update actions/create-github-app-token action (v2.1.0 → v2.1.1) | datasource | package | from | to | | ----------- | ------------------------------- | ------ | ------ | | github-tags | actions/create-github-app-token | v2.1.0 | v2.1.1 | * chore(ci): update actions/checkout action (v4.2.2 → v4.3.0) | datasource | package | from | to | | ----------- | ---------------- | ------ | ------ | | github-tags | actions/checkout | v4.2.2 | v4.3.0 | * chore(ci): Update actions/checkout action | datasource | package | from | to | | ----------- | ---------------- | ------ | ------ | | github-tags | actions/checkout | v4 | v5 | | github-tags | actions/checkout | v4.2.2 | v5.0.0 | --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
48 lines
1.3 KiB
YAML
48 lines
1.3 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
|
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@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # 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@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
|
|
with:
|
|
version: v2.3.1 # renovate: depName=golangci/golangci-lint datasource=github-releases
|
|
skip-cache: true
|
|
args: -v --timeout=10m
|