Skip to content

Commit ba01a63

Browse files
committed
Fix shellcheck errors
1 parent eb2ea83 commit ba01a63

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

run-local-integration-tests.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
# Run all Integration Tests
44

55
# Exit on any errors
6-
set -e
6+
set -euo pipefail
77

8-
if [ $# -gt 0 ]
9-
then
8+
github_token="$1"
9+
fastly_token="$2"
10+
11+
if [ $# -gt 0 ]; then
1012
echo "Running act to test integration tests with:"
11-
echo "Github Personal Access Token: $1"
12-
echo "Fastly Token: $2"
13-
act -j sdktest --secret GITHUB_TOKEN=$1 --secret fastly_token=$2
13+
echo "Github Personal Access Token: $github_token"
14+
echo "Fastly Token: $fastly_token"
15+
act -j sdktest --secret GITHUB_TOKEN="github_token" --secret fastly_token="$fastly_token"
1416
else
1517
echo "USAGE: ./_test_integration_tests.sh [Github Personal Access Token to clone https://github.com/fastly/compute-sdk-ci-github-action] [Optional, Only if you want to test C@E Environment: Fastly Token for deploying to C@E services]"
1618
fi

0 commit comments

Comments
 (0)