-
-
Notifications
You must be signed in to change notification settings - Fork 146
57 lines (49 loc) · 1.53 KB
/
testacc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Acceptance Tests
on:
workflow_dispatch:
inputs:
ref:
description: 'Branch or tag to run tests against'
required: true
default: 'main'
jobs:
acceptance:
strategy:
max-parallel: 1
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
terraform: [ 1.6 ]
runs-on: ${{ matrix.os }}
environment: pve-acc
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.inputs.ref || github.ref}}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache-dependency-path: "**/*.sum"
- name: Get dependencies
run: go mod download
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
with:
terraform_version: ${{ matrix.terraform }}.*
terraform_wrapper: false
- name: Acceptance tests
timeout-minutes: 10
env:
TF_ACC: 1
PROXMOX_VE_INSECURE: false
PROXMOX_VE_API_TOKEN: "${{ secrets.PROXMOX_VE_API_TOKEN }}"
PROXMOX_VE_ENDPOINT: "https://${{ secrets.PROXMOX_VE_HOST }}:8006/"
PROXMOX_VE_SSH_AGENT: false
PROXMOX_VE_SSH_USERNAME: "terraform"
PROXMOX_VE_SSH_PRIVATE_KEY: "${{ secrets.PROXMOX_VE_SSH_PRIVATE_KEY }}"
run: make testacc