-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.04 KB
/
terratest.yml
File metadata and controls
44 lines (38 loc) · 1.04 KB
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
name: Terratest
on:
push:
branches:
- main
pull_request:
jobs:
terratest:
strategy:
matrix:
engine: ["opentofu", "terraform"]
version: ["1.6", "1.7"]
experimental: [false]
include:
- version: "1.8"
engine: "opentofu"
experimental: true
- version: "1.8"
engine: "terraform"
experimental: false
continue-on-error: ${{ matrix.experimental }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Terraform
uses: hashicorp/setup-terraform@v3
if: ${{ matrix.engine == 'terraform' }}
with:
terraform_version: ${{ matrix.version }}
terraform_wrapper: false
- name: Install OpenTofu
uses: opentofu/setup-opentofu@v1
if: ${{ matrix.engine == 'opentofu' }}
with:
tofu_version: ${{ matrix.version }}
tofu_wrapper: false
- name: Run Terratest
run: make terratest TF_ENGINE=${{matrix.engine}}