Compare commits

..

1 Commits

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

View File

@@ -153,7 +153,14 @@ runs:
echo "$MODULES_JSON" | jq -r '.[].name' > "$NODES_FILE" echo "$MODULES_JSON" | jq -r '.[].name' > "$NODES_FILE"
# Create dependency edges (dependent -> dependency) # Create dependency edges (dependent -> dependency)
jq -r '.[] | select(.dependencies != null and (.dependencies | length) > 0) | .name as $module | .dependencies[] | "\($module) \(.)"' > "$EDGES_FILE" <<< "$MODULES_JSON" # For each module with dependencies, create "module dep" pairs
echo "$MODULES_JSON" | jq -r '
.[] |
select(.dependencies != null and (.dependencies | length) > 0) |
. as $item |
.dependencies[] |
($item.name + " " + .)
' > "$EDGES_FILE"
# Perform topological sort # Perform topological sort
if [ "$SKIP_DEPS_CHECK" != "true" ] && [ -s "$EDGES_FILE" ]; then if [ "$SKIP_DEPS_CHECK" != "true" ] && [ -s "$EDGES_FILE" ]; then