Skip to content

Commit 73f5214

Browse files
[AI] Fix CLI smoke YAML handling in CI matrix
1 parent 361fb76 commit 73f5214

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,19 @@ jobs:
109109

110110
- name: Run CLI smoke command
111111
run: |
112+
QUERY_YAML=$(cat <<'EOF'
113+
views:
114+
- type: table
115+
name: default
116+
EOF
117+
)
118+
112119
if [ "${{ matrix.runtime }}" = "bun" ]; then
113-
bun run src/cli.ts query --yaml "views:\n - type: table\n name: default" --dir fixtures/vaults/basic --format json >/tmp/mdbase-output.json
120+
bun run src/cli.ts query --yaml "$QUERY_YAML" --dir fixtures/vaults/basic --format json >/tmp/mdbase-output.json
114121
elif [ "${{ matrix.runtime }}" = "node" ]; then
115-
node dist/cli.js query --yaml "views:\n - type: table\n name: default" --dir fixtures/vaults/basic --format json >/tmp/mdbase-output.json
122+
node dist/cli.js query --yaml "$QUERY_YAML" --dir fixtures/vaults/basic --format json >/tmp/mdbase-output.json
116123
else
117-
deno run -A dist/cli.js query --yaml "views:\n - type: table\n name: default" --dir fixtures/vaults/basic --format json >/tmp/mdbase-output.json
124+
deno run -A dist/cli.js query --yaml "$QUERY_YAML" --dir fixtures/vaults/basic --format json >/tmp/mdbase-output.json
118125
fi
119126
120127
- name: Validate output

0 commit comments

Comments
 (0)