Skip to content

Commit

Permalink
ci: use npx
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Dec 5, 2023
1 parent 0531675 commit f173391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/check-observations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ for file in "$SCRIPT_PATH"/observations/*.ttl; do
name=$(basename "$file")
report=$(npx barnard59 cube check-observations --constraint "$file" < "$file" 2> "$file.log" | "$SCRIPT_PATH"/pretty-print.mjs)

if ! echo "$report" | approvals "$name" --outdir "$SCRIPT_PATH"/observations "$approvalsFlags" > /dev/null 2>&1 ; then
if ! echo "$report" | npx approvals "$name" --outdir "$SCRIPT_PATH"/observations "$approvalsFlags" > /dev/null 2>&1 ; then
"$SCRIPT_PATH"/report-failure.sh "$file" "$(cat "$file")" "$(cat "$file")" "check results"
FAILED=1
else
Expand Down

0 comments on commit f173391

Please sign in to comment.