Skip to content

Commit f1fc6d9

Browse files
authored
Enable copilot code review & fix setup-opentofu version to fix the acceptance test GitHub Action (#302)
* Enable copilot code review * Fix setup-opentofu version * Fix opentofu failures
1 parent f19bffc commit f1fc6d9

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.asf.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ github:
3737
collaborators:
3838
- fabiomatavelli
3939
- bhouse-nexthop
40+
41+
copilot_code_review:
42+
enabled: true
43+
review_drafts: true
44+
review_on_push: true

.github/workflows/acceptance.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,19 @@ jobs:
9898
id: setup-cloudstack
9999
with:
100100
cloudstack-version: ${{ matrix.cloudstack-version }}
101-
- uses: opentofu/setup-opentofu@9d84900f3238fab8cd84ce47d658d25dd008be2f # v1.0.8
101+
- uses: opentofu/setup-opentofu@a1320f892987e89d278cc92dc5adc984fb93aca4 # v2.0.2
102102
with:
103103
tofu_version: ${{ matrix.opentofu-version }}
104+
tofu_wrapper: false
104105
- name: Run acceptance test
105106
env:
106107
CLOUDSTACK_USER_ID: ${{ steps.setup-cloudstack.outputs.CLOUDSTACK_USER_ID }}
107108
CLOUDSTACK_API_KEY: ${{ steps.setup-cloudstack.outputs.CLOUDSTACK_API_KEY }}
108109
CLOUDSTACK_SECRET_KEY: ${{ steps.setup-cloudstack.outputs.CLOUDSTACK_SECRET_KEY }}
110+
TF_ACC_PROVIDER_NAMESPACE: hashicorp
111+
TF_ACC_PROVIDER_HOST: registry.opentofu.org
109112
run: |
113+
export TF_ACC_TERRAFORM_PATH="$(which tofu)"
110114
make testacc
111115
services:
112116
cloudstack-simulator:

0 commit comments

Comments
 (0)