Skip to content

Commit

Permalink
feat: add OpenTofu test to CI workflows (#48)
Browse files Browse the repository at this point in the history
This in-place OpenTofu Pipeline will validate module against OpenTofu version ranges
  • Loading branch information
saidsef authored Jan 5, 2025
1 parent 94c248a commit 59c47aa
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,21 @@ on:
workflow_dispatch:

jobs:
validate:
terraform:
uses: saidsef/saidsef/.github/workflows/tf-validate.yaml@main
with:
start-version: '0'
end-version: '10'
start-version: '0' # minimum TF version (format 1.0.x)
end-version: '10' # maximum TF version (format 1.10.x)

opentofu:
uses: saidsef/saidsef/.github/workflows/tofu-validate.yaml@main
with:
start-version: '6' # minimum TOFU version (format 1.6.x)
end-version: '8' # maximum TOFU version (format 1.8.x)

tfsec:
uses: saidsef/saidsef/.github/workflows/tf-security.yaml@main
needs: [validate]
needs: [terraform, opentofu]

attest:
uses: saidsef/saidsef/.github/workflows/tf-attest.yaml@main
Expand All @@ -27,7 +33,7 @@ jobs:
caller-identity-check:
if: contains(github.event_name, 'pull_request')
name: Return the IAM user
needs: [validate, tfsec]
needs: [terraform, opentofu, tfsec]
permissions:
contents: read
id-token: write
Expand All @@ -44,4 +50,4 @@ jobs:
auto-approve:
uses: saidsef/saidsef/.github/workflows/auto-approve.yaml@main
needs: [validate, tfsec, caller-identity-check]
needs: [terraform, opentofu, tfsec, caller-identity-check]

0 comments on commit 59c47aa

Please sign in to comment.