Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test scripts to catch every non-zero exit code (#733)
Co-authored-by: Alexander <alex@Alexanders-MacBook-2021.local> Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
- Loading branch information
1 parent
2042d3d
commit e55ab28
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
set -Ee # Exit immediately if a command returns a non-zero status | ||
set -u # Exit when references variables are undefined | ||
set -o pipefail # Exit when any program execution in a pipeline breaks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
. ./script/setup.sh | ||
|
||
for template in $(./bin/create-probot-app.js --show-templates ALL); do | ||
TEMPLATES=$(./bin/create-probot-app.js --show-templates ALL) | ||
|
||
for template in $TEMPLATES; do | ||
npm run test:template $template; | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters