CI/CD workflows should use explicit, named configurations rather than wildcards, globs, or implicit behaviors to improve maintainability and debuggability. This makes it easier for developers to understand failures and reduces silent errors.
CI/CD workflows should use explicit, named configurations rather than wildcards, globs, or implicit behaviors to improve maintainability and debuggability. This makes it easier for developers to understand failures and reduces silent errors.
Key practices:
needs:
to ensure correct execution orderExample of explicit vs implicit configuration:
# Avoid: Implicit glob pattern
run: |
for file in test/configs/*; do
./build/release/test/unittest --test-config "$file"
done
# Prefer: Explicit named jobs
encrypted-db-test:
name: Encrypted Database Test
run: ./build/release/test/unittest --test-config encrypted_db.config
performance-test:
name: Performance Test
run: ./build/release/test/unittest --test-config performance.config
This approach makes CI failures easier to diagnose and workflows more maintainable for the development team.
Enter the URL of a public GitHub repository