Skip to content

Commit cedb212

Browse files
committed
fix: correct GitHub Actions matrix generation format
- Convert multi-line JSON to single-line format for GITHUB_OUTPUT compatibility - Fix test workflow matrix generation that was causing CI failures
1 parent 2da4e90 commit cedb212

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,8 @@ jobs:
117117
118118
# Simple matrix generation with proper JSON formatting
119119
if [ "$components" = "all" ]; then
120-
matrix=$(cat << 'EOF'
121-
[
122-
{"name": "orchestrator", "path": "orchestrator", "type": "go", "requires_k8s": false, "timeout": "10m"},
123-
{"name": "vnf-operator", "path": "adapters/vnf-operator", "type": "go", "requires_k8s": true, "timeout": "15m"},
124-
{"name": "o2-client", "path": "o2-client", "type": "go", "requires_k8s": false, "timeout": "10m"},
125-
{"name": "tn", "path": "tn", "type": "go", "requires_k8s": true, "timeout": "12m"},
126-
{"name": "cn-dms", "path": "cn-dms", "type": "go", "requires_k8s": true, "timeout": "10m"},
127-
{"name": "ran-dms", "path": "ran-dms", "type": "go", "requires_k8s": true, "timeout": "10m"},
128-
{"name": "pkg-security", "path": "pkg/security", "type": "go", "requires_k8s": false, "timeout": "8m"},
129-
{"name": "nlp", "path": "nlp", "type": "python", "requires_k8s": false, "timeout": "8m"}
130-
]
131-
EOF
132-
)
120+
# Single-line JSON for GitHub Actions compatibility
121+
matrix='[{"name": "orchestrator", "path": "orchestrator", "type": "go", "requires_k8s": false, "timeout": "10m"}, {"name": "vnf-operator", "path": "adapters/vnf-operator", "type": "go", "requires_k8s": true, "timeout": "15m"}, {"name": "o2-client", "path": "o2-client", "type": "go", "requires_k8s": false, "timeout": "10m"}, {"name": "tn", "path": "tn", "type": "go", "requires_k8s": true, "timeout": "12m"}, {"name": "cn-dms", "path": "cn-dms", "type": "go", "requires_k8s": true, "timeout": "10m"}, {"name": "ran-dms", "path": "ran-dms", "type": "go", "requires_k8s": true, "timeout": "10m"}, {"name": "pkg-security", "path": "pkg/security", "type": "go", "requires_k8s": false, "timeout": "8m"}, {"name": "nlp", "path": "nlp", "type": "python", "requires_k8s": false, "timeout": "8m"}]'
133122
else
134123
# Simple fallback for specific components
135124
matrix='[{"name": "orchestrator", "path": "orchestrator", "type": "go", "requires_k8s": false, "timeout": "10m"}]'

0 commit comments

Comments
 (0)