File tree Expand file tree Collapse file tree 1 file changed +42
-2
lines changed Expand file tree Collapse file tree 1 file changed +42
-2
lines changed Original file line number Diff line number Diff line change 7575 fail_on_error : " true"
7676 filter_mode : " added"
7777
78- test -e2e :
79- name : E2E Tests
78+ terraform -e2e :
79+ name : E2E Tests (Terraform)
8080 strategy :
8181 max-parallel : 1
8282 matrix :
@@ -115,3 +115,43 @@ jobs:
115115 test/results/**/*.xml
116116 test/results/*.xml
117117
118+ opentofu-e2e :
119+ name : E2E Tests (OpenTofu)
120+ strategy :
121+ max-parallel : 1
122+ matrix :
123+ opentofu_version : [1.6.0, 1.8.7]
124+ os : [ubuntu-latest]
125+ runs-on : ${{ matrix.os }}
126+ steps :
127+ - name : Checkout Code
128+ uses : actions/checkout@v4
129+ with :
130+ submodules : true
131+
132+ - uses : opentofu/setup-opentofu@v1
133+ with :
134+ tofu_version : ${{ matrix.opentofu_version }}
135+
136+ - name : Install Go
137+ uses : actions/setup-go@v5
138+ with :
139+ go-version : 1.23.x
140+
141+ - name : Run Tests
142+ working-directory : test/
143+ env :
144+ LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
145+ run : |
146+ go install github.com/gruntwork-io/terratest/cmd/terratest_log_parser@latest
147+ go mod tidy
148+ go test -v -timeout 60m -coverprofile=coverage-examples-complete.out -race -covermode=atomic | tee test_output.log
149+ terratest_log_parser -testlog test_output.log -outputdir results
150+
151+ - name : Test Summary
152+ uses : test-summary/action@v2
153+ with :
154+ paths : |
155+ test/results/**/*.xml
156+ test/results/*.xml
157+
You can’t perform that action at this time.
0 commit comments