Skip to content

Commit cfb06e6

Browse files
Update run_integration_tests.sh
Change the syntax for linux shell script.
1 parent 79c6225 commit cfb06e6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/scripts/run_integration_tests.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
set -e
18+
set -u
19+
1720
mkdir -p FirebaseAdmin/FirebaseAdmin.IntegrationTests/resources
1821

19-
gpg --quiet --batch --yes --decrypt --passphrase=$Env:FIREBASE_SERVICE_ACCT_KEY `
20-
--output FirebaseAdmin/FirebaseAdmin.IntegrationTests/resources/integration_cert.json `
22+
gpg --quiet --batch --yes --decrypt --passphrase="${FIREBASE_SERVICE_ACCT_KEY}" \
23+
--output FirebaseAdmin/FirebaseAdmin.IntegrationTests/resources/integration_cert.json \
2124
.github/resources/integ-service-account.json.gpg
2225

23-
echo $Env:FIREBASE_API_KEY > FirebaseAdmin/FirebaseAdmin.IntegrationTests/resources/integration_apikey.txt
26+
echo "${FIREBASE_API_KEY}" > FirebaseAdmin/FirebaseAdmin.IntegrationTests/resources/integration_apikey.txt
2427

2528
dotnet test FirebaseAdmin/FirebaseAdmin.IntegrationTests

0 commit comments

Comments
 (0)