Skip to content

Commit ff01239

Browse files
committed
windows runner fix
1 parent e20d93b commit ff01239

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,24 +129,23 @@ jobs:
129129
GOOGLE_PROJECT: ${{ vars.GOOGLE_PROJECT }}
130130
GOOGLE_ZONE: ${{ vars.GOOGLE_ZONE }}
131131

132-
- name: validate stackql-exec output
132+
- name: validate stackql outputs
133133
shell: bash
134134
run: |
135-
# test `stackql-command`
135+
# Test `stackql-command`
136136
output="${{ steps.stackql-command.outputs.stackql-command-output }}"
137-
regex="([a-zA-Z]+) provider, version 'v[0-9.]+ successfully installed"
138137
all_passed=true
139-
while IFS= read -r line; do
138+
echo "$output" | while IFS= read -r line; do
140139
# Skip empty lines
141140
if [[ -z "$line" ]]; then
142141
continue
143142
fi
144-
# Validate against the regex
145-
if ! echo "$line" | grep -qE "$regex"; then
143+
# Validate against a simple keyword presence
144+
if ! echo "$line" | grep -qi "provider" || ! echo "$line" | grep -qi "version" || ! echo "$line" | grep -qi "successfully installed"; then
146145
echo "Failed line: $line"
147146
all_passed=false
148147
fi
149-
done < <(echo "$output")
148+
done
150149
if [[ "$all_passed" == "false" ]]; then
151150
echo "One or more lines in the output failed to match the expected format."
152151
exit 1

0 commit comments

Comments
 (0)