Skip to content

Commit e4c4206

Browse files
committed
Test add-to-path
1 parent b5bd996 commit e4c4206

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,27 @@ jobs:
6161
with:
6262
repository: jqlang/jq
6363
destination: bin/extra/jq
64+
add-to-path: 1
65+
66+
- name: check add to path
67+
shell: bash
68+
run: |
69+
: Check add-to-path
70+
jq_in_path=$(command -v jq)
71+
expected_jq=$(realpath bin/extra/jq)
72+
(
73+
echo "## jq"
74+
echo '```sh'
75+
echo "jq in path: $jq_in_path"
76+
echo "expected jq: $expected_jq"
77+
echo '```'
78+
echo
79+
) >> "$GITHUB_STEP_SUMMARY"
80+
81+
if [ "$jq_in_path" != "$expected_jq" ]; then
82+
echo "::error ::'$jq_in_path' != '$expected_jq'"
83+
exit 1
84+
fi
6485
6586
- name: debug
6687
shell: bash

0 commit comments

Comments
 (0)