Compare commits

..

1 Commits

Author SHA1 Message Date
Sebastian Krupinski
150bca647e chore: initial workflow implementation
Some checks failed
Test Module Installation Action / Node.js Module with NPM (pull_request) Failing after 26s
Test Module Installation Action / PHP Module with Composer (pull_request) Successful in 57s
Test Module Installation Action / Linear Dependencies (A → B → C) (pull_request) Failing after 1m20s
Test Module Installation Action / Mixed PHP and Node Modules (pull_request) Failing after 1m15s
Test Module Installation Action / Error Handling (pull_request) Successful in 1m20s
Test Module Installation Action / Single Module (No Dependencies) (pull_request) Failing after 1m35s
Test Module Installation Action / Test Summary (pull_request) Failing after 3s
Signed-off-by: Sebastian Krupinski <root@LAPTOP-7DVOR6NC>
2026-02-15 16:54:03 -05:00

View File

@@ -393,11 +393,16 @@ runs:
# Verify npm installation # Verify npm installation
if [ -f "$MODULE_PATH/package.json" ]; then if [ -f "$MODULE_PATH/package.json" ]; then
if [ -d "$MODULE_PATH/node_modules" ]; then NODE_DEP_COUNT=$(jq -r '((.dependencies // {}) | length) + ((.optionalDependencies // {}) | length)' "$MODULE_PATH/package.json" 2>/dev/null || echo "0")
echo " ✓ Node dependencies installed (node_modules/ exists)" if [ "$NODE_DEP_COUNT" -gt 0 ]; then
if [ -d "$MODULE_PATH/node_modules" ]; then
echo " ✓ Node dependencies installed (node_modules/ exists)"
else
echo "::error::package.json has production dependencies but node_modules/ directory not found in $MODULE_NAME"
exit 1
fi
else else
echo "::error::package.json exists but node_modules/ directory not found in $MODULE_NAME" echo " ✓ Node module has no production dependencies (node_modules/ not required)"
exit 1
fi fi
fi fi