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
fix: [#ci] initialize OpenTofu before validation in CI tests
- Add automatic OpenTofu/Terraform initialization in test-unit-config.sh
- Fixes CI workflow failure where 'tofu validate' requires 'tofu init' first
- Check for .terraform directory existence before running validation
- Initialize silently to avoid test output clutter
- Maintains backward compatibility with already-initialized environments
- Resolves GitHub Actions workflow validation errors
This ensures the configuration validation test works correctly in both:
- Local environments (where tofu init has been run manually)
- CI environments (where the working directory is clean)
Tested scenarios:
- Pre-initialized environment (existing behavior preserved)
- Clean environment (auto-initialization works correctly)
- Full CI test suite passes with this fix
0 commit comments