Skip to content

Conversation

@samcm
Copy link
Member

@samcm samcm commented Aug 5, 2025

Adds a validate command, which just checks that the provided config is valid and exits 0 if so.

go run main.go validate --config /tmp/test-config-bad-task.yaml

ERRO[0000] configuration validation failed               error="configuration validation failed:\n  - test[0] 'test-1': task[0] 'sleep': error parsing task config for sleep: time: invalid duration \"invalid-duration\""
exit status 1

samcm added 2 commits August 5, 2025 15:14
refactor(config): add `Validate` method to `Config` and `CoordinatorConfig` structs
refactor(test): add `ValidateTestConfig` function to validate test configurations
… file existence

refactor(pkg/coordinator): update GlobalVars map value type from interface{} to any
@samcm samcm merged commit 1cad207 into master Aug 5, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants