fix(ci): Add || true to run_check calls to prevent early exit
With set -euo pipefail, run_check returning 1 causes script to exit immediately. Added || true to all run_check calls in main() to allow script to continue and collect all failures before exiting at the end with proper summary. Note: Script may still have other issues causing early exit - needs further investigation. Build and TypeScript checks pass independently.
This commit is contained in:
@@ -542,18 +542,20 @@ main() {
|
||||
print_environment
|
||||
install_dependencies
|
||||
|
||||
run_check "Native code not in src/" check_native_code_in_src
|
||||
# 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 "Native code not in src/" check_native_code_in_src || true
|
||||
|
||||
# Core source checks must be before build
|
||||
run_check "Core module source checks" check_core_source
|
||||
run_check "Core module source checks" check_core_source || true
|
||||
|
||||
run_check "TypeScript typecheck" check_typescript
|
||||
run_check "Build" check_build
|
||||
run_check "TypeScript typecheck" check_typescript || true
|
||||
run_check "Build" check_build || true
|
||||
|
||||
# Core artifacts checks must be after build
|
||||
run_check "Core module artifact checks" check_core_artifacts
|
||||
run_check "Core module artifact checks" check_core_artifacts || true
|
||||
|
||||
run_check "Package checks" check_package
|
||||
run_check "Package checks" check_package || true
|
||||
|
||||
check_android
|
||||
check_ios
|
||||
|
||||
Reference in New Issue
Block a user