Compare commits

..

1 Commits

Author SHA1 Message Date
Sebastian Krupinski
9fd503d45b chore: initial workflow implementation
Some checks failed
Test Module Installation Action / Node.js Module with NPM (pull_request) Failing after 22s
Test Module Installation Action / Linear Dependencies (A → B → C) (pull_request) Failing after 1m2s
Test Module Installation Action / Single Module (No Dependencies) (pull_request) Failing after 1m16s
Test Module Installation Action / PHP Module with Composer (pull_request) Successful in 1m26s
Test Module Installation Action / Mixed PHP and Node Modules (pull_request) Failing after 1m25s
Test Module Installation Action / Error Handling (pull_request) Successful in 1m24s
Test Module Installation Action / Test Summary (pull_request) Failing after 3s
Signed-off-by: Sebastian Krupinski <root@LAPTOP-7DVOR6NC>
2026-02-15 16:52:02 -05:00

View File

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