You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore(ci): skip terraform_docs in CI workflow
- Remove .md files from trigger paths
- Remove terraform-docs installation step
- Add SKIP: terraform_docs environment variable
- Update actions/cache to v4 and setup-python to v5
- Update cache key to bust stale caches
- Simplify pre-commit run logic into single step
- Update summary to clarify docs handled locally
This eliminates environment parity issues between macOS and Linux
for terraform-docs and speeds up CI by removing unnecessary tooling.
Closes#148
* fix(ci): address security and error handling issues
- Replace insecure curl|bash with verified tflint GitHub release download
- Add set -euo pipefail for strict error handling
- Add explicit error handling for git fetch operations
- Use --diff-filter=ACMR to exclude deleted files from pre-commit
- Use xargs for safer file argument handling
- Update tflint to v0.54.0
Addresses review feedback from bug hunt.
* chore: remove AWS-costing Terraform tests
Remove Terratest integration tests to eliminate AWS resource costs in CI.
Changes:
- Delete test/ directory (Go tests, helpers, cleanup utility)
- Remove unit-tests, integration-tests, test-results, cleanup jobs from test.yml
- Keep free validation, security scanning, and linting jobs
- Update CLAUDE.md to remove testing documentation
Preserved:
- examples/ directory for user documentation
- terraform fmt, validate, tfsec, tflint checks
go test -v -timeout 10m -run "TestTerraform.*Validation|TestTerraformFormat|TestTerraformValidate|TestExamplesValidation|TestTerraformPlan|TestVariableValidation" \
161
-
-json > validation-test-results.json
162
-
env:
163
-
AWS_DEFAULT_REGION: us-east-1
164
-
165
-
- name: Run ephemeral tests
166
-
if: matrix.test-suite == 'ephemeral'
167
-
working-directory: test
168
-
run: |
169
-
echo "Starting ephemeral tests..."
170
-
echo "AWS Region: $AWS_DEFAULT_REGION"
171
-
echo "Go version: $(go version)"
172
-
echo "Terraform version: $(terraform version)"
173
-
174
-
# Run tests sequentially to avoid state conflicts
175
-
go test -v -timeout 30m -p=1 -run "TestEphemeral.*" \
176
-
-json > ephemeral-test-results.json
177
-
178
-
exit_code=$?
179
-
echo "Tests completed with exit code: $exit_code"
180
-
181
-
if [ $exit_code -ne 0 ]; then
182
-
echo "Test failures detected. Showing recent test output:"
183
-
tail -50 ephemeral-test-results.json || echo "No test results file found"
184
-
fi
185
-
186
-
exit $exit_code
187
-
env:
188
-
AWS_DEFAULT_REGION: us-east-1
189
-
190
-
- name: Debug test artifacts
191
-
if: always()
192
-
working-directory: test
193
-
run: |
194
-
echo "=== Test directory contents ==="
195
-
ls -la
196
-
echo "=== Test result files ==="
197
-
ls -la *-test-results.json 2>/dev/null || echo "No test result files found"
198
-
echo "=== Terraform state files ==="
199
-
ls -la ../*.tfstate* 2>/dev/null || echo "No state files found"
200
-
201
-
- name: Upload test results
202
-
uses: actions/upload-artifact@v4
203
-
if: always()
204
-
with:
205
-
name: test-results-${{ matrix.test-suite }}
206
-
path: test/*-test-results.json
207
-
208
-
# Integration tests - only on master or when specifically requested
0 commit comments