feat: add Terraform Proxmox provider module #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Terraform Lint | |
| on: | |
| pull_request: | |
| paths: | |
| - 'terraform/**' | |
| jobs: | |
| fmt: | |
| name: Format Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: "~1.5" | |
| - name: terraform fmt | |
| run: terraform fmt -check -recursive terraform/ | |
| validate-azure: | |
| name: Validate (Azure) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: "~1.5" | |
| - name: terraform init | |
| run: terraform init -backend=false | |
| working-directory: terraform/azure | |
| - name: terraform validate | |
| run: terraform validate | |
| working-directory: terraform/azure | |
| validate-kvm: | |
| name: Validate (KVM) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: "~1.5" | |
| - name: terraform init | |
| # -upgrade forces provider download; libvirt provider is a community | |
| # provider from dmacvicar/libvirt and installs without a running host | |
| run: terraform init -backend=false -upgrade | |
| working-directory: terraform/kvm | |
| - name: terraform validate | |
| # validate checks syntax and type correctness only — no provider API calls | |
| run: terraform validate | |
| working-directory: terraform/kvm | |
| validate-proxmox: | |
| name: Validate (Proxmox) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: "~1.5" | |
| - name: terraform init | |
| # bpg/proxmox is a community provider and installs without a running host | |
| run: terraform init -backend=false | |
| working-directory: terraform/proxmox | |
| - name: terraform validate | |
| # validate checks syntax and type correctness only — no provider API calls | |
| run: terraform validate | |
| working-directory: terraform/proxmox | |
| tflint: | |
| name: TFLint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: terraform-linters/setup-tflint@v4 | |
| with: | |
| tflint_version: latest | |
| - name: Init TFLint (Azure) | |
| run: tflint --init | |
| working-directory: terraform/azure | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: TFLint (Azure) | |
| run: tflint --recursive --minimum-failure-severity=error | |
| working-directory: terraform/azure | |
| - name: Init TFLint (KVM) | |
| run: tflint --init | |
| working-directory: terraform/kvm | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: TFLint (KVM) | |
| run: tflint --recursive --minimum-failure-severity=error | |
| working-directory: terraform/kvm | |
| - name: Init TFLint (Proxmox) | |
| run: tflint --init | |
| working-directory: terraform/proxmox | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: TFLint (Proxmox) | |
| run: tflint --recursive --minimum-failure-severity=error | |
| working-directory: terraform/proxmox |