Skip to content

Commit

Permalink
Fix syntax of invalid token run
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrHeinz committed Sep 19, 2023
1 parent 5e5118f commit 7d6fc0c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ jobs:
working-directory: ./example-project

- name: Run example project with invalid token
run: if node index.js INVALID_TOKEN; then echo "This should have failed but didn't"; exit 1; else "Failed successfully"; fi
run: |
if node index.js INVALID_TOKEN; then
echo "This should have failed but didn't"
exit 1
else
echo "Failed successfully"
fi
working-directory: ./example-project

tests-bun:
Expand Down Expand Up @@ -65,5 +71,11 @@ jobs:
working-directory: ./example-project

- name: Run example project with invalid token
run: if bun run index.js INVALID_TOKEN; then echo "This should have failed but didn't"; exit 1; else "Failed successfully"; fi
run: |
if bun run index.js INVALID_TOKEN; then
echo "This should have failed but didn't"
exit 1
else
echo "Failed successfully"
fi
working-directory: ./example-project

0 comments on commit 7d6fc0c

Please sign in to comment.