-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 982 Bytes
/
validation.yml
File metadata and controls
40 lines (34 loc) · 982 Bytes
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
name: Validation
on:
push:
pull_request:
jobs:
validation:
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 }}
- name: Install OpenTofu
uses: opentofu/setup-opentofu@v1
if: ${{ matrix.engine == 'opentofu' }}
with:
tofu_version: ${{ matrix.version }}
- name: Test Validation
run: make test_validation TF_ENGINE=${{matrix.engine}}