mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-08-22 19:38:35 +00:00
chore(build): update devcontainer and CI workflows (#1691)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
parent
1afaf6cc44
commit
5ec64b8b19
@ -3,12 +3,12 @@
|
|||||||
{
|
{
|
||||||
"name": "Default Linux Universal",
|
"name": "Default Linux Universal",
|
||||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
"image": "mcr.microsoft.com/devcontainers/go",
|
"image": "mcr.microsoft.com/devcontainers/go:1.23-bullseye",
|
||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/terraform:1": {
|
"ghcr.io/devcontainers/features/terraform:1": {
|
||||||
"version": "1.9.4"
|
"version": "1.10.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
4
.github/workflows/golangci-lint.yml
vendored
4
.github/workflows/golangci-lint.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
if: steps.filter.outputs.go == 'true'
|
if: ${{ steps.filter.outputs.go == 'true' }}
|
||||||
with:
|
with:
|
||||||
go-version-file: "go.mod"
|
go-version-file: "go.mod"
|
||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
@ -39,6 +39,6 @@ jobs:
|
|||||||
tools/go.sum
|
tools/go.sum
|
||||||
|
|
||||||
- name: Lint code
|
- name: Lint code
|
||||||
if: steps.filter.outputs.go == 'true'
|
if: ${{ steps.filter.outputs.go == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
go run -modfile=tools/go.mod github.com/golangci/golangci-lint/cmd/golangci-lint run -v --timeout 5m
|
go run -modfile=tools/go.mod github.com/golangci/golangci-lint/cmd/golangci-lint run -v --timeout 5m
|
||||||
|
4
.github/workflows/link-check.yml
vendored
4
.github/workflows/link-check.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
- name: Find Link Checker Issue
|
- name: Find Link Checker Issue
|
||||||
id: link-checker-issue
|
id: link-checker-issue
|
||||||
uses: micalevisk/last-issue-action@0d40124cc99ac8601c2516007f0c98ef3d27537b # v2.3.0
|
uses: micalevisk/last-issue-action@0d40124cc99ac8601c2516007f0c98ef3d27537b # v2.3.0
|
||||||
if: env.lychee_exit_code != 0
|
if: steps.lychee.outputs.exit_code != 0
|
||||||
with:
|
with:
|
||||||
state: open
|
state: open
|
||||||
labels: |
|
labels: |
|
||||||
@ -40,7 +40,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Update Issue
|
- name: Update Issue
|
||||||
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5.0.1
|
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5.0.1
|
||||||
if: env.lychee_exit_code != 0
|
if: steps.lychee.outputs.exit_code != 0
|
||||||
with:
|
with:
|
||||||
title: Broken links detected 🔗
|
title: Broken links detected 🔗
|
||||||
issue-number: "${{ steps.link-checker-issue.outputs.issue-number }}"
|
issue-number: "${{ steps.link-checker-issue.outputs.issue-number }}"
|
||||||
|
2
.github/workflows/metrics.yml
vendored
2
.github/workflows/metrics.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Generate Metrics
|
- name: Generate Metrics
|
||||||
uses: lowlighter/metrics@latest
|
uses: lowlighter/metrics@v3.34
|
||||||
with:
|
with:
|
||||||
template: repository
|
template: repository
|
||||||
filename: metrics.svg
|
filename: metrics.svg
|
||||||
|
Loading…
Reference in New Issue
Block a user