Skip to content

Commit

Permalink
fail on error in helper shell scripts
Browse files Browse the repository at this point in the history
ensures that CI throws errors properly within GHA
  • Loading branch information
nick-funk committed Jul 26, 2023
1 parent 416d503 commit 37fb21e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -e

echo "generating schema types for client, common"

cd server
Expand Down
3 changes: 3 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -e

echo "generating schema types for client, common"

cd server
Expand Down
3 changes: 3 additions & 0 deletions initialize.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -e

echo "installing \`homebrew\` for macOS"

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Expand Down
3 changes: 3 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -e

echo "linting \`client\`"

cd client
Expand Down
3 changes: 3 additions & 0 deletions npm-ci.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -e

echo "running \`npm install\` for \`common\`"
cd common
npm ci
Expand Down
3 changes: 3 additions & 0 deletions npm-i.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -e

echo "running \`npm install\` for \`common\`"
cd common
npm i
Expand Down

0 comments on commit 37fb21e

Please sign in to comment.