Skip to content

Commit e0ab1e8

Browse files
committed
windows runner fix
1 parent 38a118f commit e0ab1e8

File tree

1 file changed

+23
-50
lines changed

1 file changed

+23
-50
lines changed

.github/workflows/stackql-exec-test.yml

Lines changed: 23 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -132,53 +132,26 @@ jobs:
132132
- name: validate stackql outputs
133133
shell: bash
134134
run: |
135-
# Check stackql-command output
136-
if echo "${{ steps.stackql-command.outputs.stackql-command-output }}" | grep -qE "provider, version 'v[0-9.]+' successfully installed"; then
137-
echo "stackql-command output is valid."
138-
else
139-
echo "stackql-command output is invalid."
140-
exit 1
141-
fi
142-
143-
# Check JSON output from stackql-query
144-
if ! echo "${{ steps.stackql-query.outputs.stackql-query-results }}" | jq empty; then
145-
echo "JSON output from stackql-query is invalid."
146-
exit 1
147-
fi
148-
149-
# Check CSV output from stackql-query-csv-output
150-
csv_header="${{ steps.stackql-query-csv-output.outputs.stackql-query-results }}"
151-
if ! echo "$csv_header" | head -n 1 | grep -q "visibility,number_of_repos"; then
152-
echo "CSV header from stackql-query-csv-output is invalid."
153-
exit 1
154-
fi
155-
156-
# Check Table output from stackql-query-table-output
157-
table_header="${{ steps.stackql-query-table-output.outputs.stackql-query-results }}"
158-
if ! echo "$table_header" | sed -n 2p | grep -q "| visibility | number_of_repos |"; then
159-
echo "Table header from stackql-query-table-output is invalid."
160-
exit 1
161-
fi
162-
163-
# Check Text output from stackql-query-text-output
164-
text_output="${{ steps.stackql-query-text-output.outputs.stackql-query-results }}"
165-
if ! echo "$text_output" | head -n 1 | grep -q "visibility,number_of_repos"; then
166-
echo "Text output from stackql-query-text-output is invalid."
167-
exit 1
168-
fi
169-
170-
# Check outputs from files and variable dependent queries
171-
if ! echo "${{ steps.stackql-query-file.outputs.stackql-query-results }}" | jq empty; then
172-
echo "JSON output from stackql-query-file is invalid."
173-
exit 1
174-
fi
175-
176-
if ! echo "${{ steps.stackql-query-file-with-vars.outputs.stackql-query-results }}" | jq empty; then
177-
echo "JSON output from stackql-query-file-with-vars is invalid."
178-
exit 1
179-
fi
180-
181-
if ! echo "${{ steps.stackql-query-file-with-data-file-and-vars.outputs.stackql-query-results }}" | jq empty; then
182-
echo "JSON output from stackql-query-file-with-data-file-and-vars is invalid."
183-
exit 1
184-
fi
135+
echo "stackql-command:"
136+
echo "${{ steps.stackql-command.outputs.stackql-command-output }}"
137+
138+
echo "stackql-query:"
139+
echo "${{ steps.stackql-query.outputs.stackql-query-results }}"
140+
141+
echo "stackql-query-csv-output:"
142+
echo "${{ steps.stackql-query-csv-output.outputs.stackql-query-results }}"
143+
144+
echo "stackql-query-table-output:"
145+
echo "${{ steps.stackql-query-table-output.outputs.stackql-query-results }}"
146+
147+
echo "stackql-query-text-output:"
148+
echo "${{ steps.stackql-query-text-output.outputs.stackql-query-results }}"
149+
150+
echo "stackql-query-file:"
151+
echo "${{ steps.stackql-query-file.outputs.stackql-query-results }}"
152+
153+
echo "stackql-query-file-with-vars:"
154+
echo "${{ steps.stackql-query-file-with-vars.outputs.stackql-query-results }}"
155+
156+
echo "stackql-query-file-with-data-file-and-vars:"
157+
echo "${{ steps.stackql-query-file-with-data-file-and-vars.outputs.stackql-query-results }}"

0 commit comments

Comments
 (0)