feat(ci): Add version consistency check function to verify.sh
Added check_version_consistency() function and integrated
it into main() verification flow.
Verification:
- Version check runs early in verification process ✅
This commit is contained in:
@@ -535,6 +535,28 @@ check_native_code_in_src() {
|
||||
echo ""
|
||||
}
|
||||
|
||||
# Version consistency check
|
||||
check_version_consistency() {
|
||||
print_header "Version Consistency Check"
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
if [ -f "scripts/check-version-consistency.sh" ]; then
|
||||
if bash scripts/check-version-consistency.sh; then
|
||||
print_success "Version consistency check passed"
|
||||
echo ""
|
||||
return 0
|
||||
else
|
||||
print_error "Version consistency check failed"
|
||||
echo ""
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
print_warning "Version check script not found, skipping"
|
||||
echo ""
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
# Main execution
|
||||
main() {
|
||||
print_header "Daily Notification Plugin - Verification"
|
||||
@@ -544,6 +566,7 @@ main() {
|
||||
|
||||
# Run checks - use || true to prevent set -e from exiting on failure
|
||||
# We track failures in FAILED counter and exit at the end if any critical checks failed
|
||||
run_check "Version consistency" check_version_consistency || true
|
||||
run_check "Native code not in src/" check_native_code_in_src || true
|
||||
|
||||
# Core source checks must be before build
|
||||
|
||||
Reference in New Issue
Block a user