Skip to content

Commit 00d7234

Browse files
authored
feat: add OpenTofu to github workflow (#36)
This in-place validation will check of current module if compatible with OpenTofu
1 parent 7d267de commit 00d7234

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
validate:
13+
terraform:
1414
uses: saidsef/saidsef/.github/workflows/tf-validate.yaml@main
1515
with:
16-
start-version: '0'
17-
end-version: '9'
16+
start-version: '0' # minimum version (format: 1.0.x)
17+
end-version: '10' # maximum version (format: 1.10.x)
18+
19+
opentofu:
20+
uses: saidsef/saidsef/.github/workflows/tf-validate.yaml@main
21+
with:
22+
start-version: '5' # minimum version (format: 1.5.x)
23+
end-version: '8' # maximum version (format: 1.8.x)
1824

1925
tfsec:
2026
uses: saidsef/saidsef/.github/workflows/tf-security.yaml@main
21-
needs: [validate]
27+
needs: [terraform, opentofu]
2228

2329
attest:
2430
uses: saidsef/saidsef/.github/workflows/tf-attest.yaml@main
@@ -27,7 +33,7 @@ jobs:
2733
caller-identity-check:
2834
if: contains(github.event_name, 'pull_request')
2935
name: Return the IAM user
30-
needs: [validate, tfsec]
36+
needs: [terraform, opentofu, tfsec]
3137
permissions:
3238
contents: read
3339
id-token: write
@@ -52,4 +58,4 @@ jobs:
5258
5359
auto-approve:
5460
uses: saidsef/saidsef/.github/workflows/auto-approve.yaml@main
55-
needs: [validate, tfsec, caller-identity-check]
61+
needs: [terraform, opentofu, tfsec, caller-identity-check]

0 commit comments

Comments
 (0)