From a12a36261b5bdf5ca72f5bb445269f33e67123ed Mon Sep 17 00:00:00 2001 From: Alvaro Guadamillas Date: Wed, 29 Nov 2023 15:19:32 +0100 Subject: [PATCH] Add Postman CLI and run API tests on UAT --- .github/workflows/ie-bank-backend.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ie-bank-backend.yml b/.github/workflows/ie-bank-backend.yml index 66e91ad..c333a24 100644 --- a/.github/workflows/ie-bank-backend.yml +++ b/.github/workflows/ie-bank-backend.yml @@ -101,4 +101,12 @@ jobs: id: deploy-to-webapp with: app-name: ${{ env.BACKEND_WEBAPP_UAT }} - package: . \ No newline at end of file + package: . + - name: Install Postman CLI + run: | + curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh + - name: Login to Postman CLI + run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }} + - name: Run API tests on UAT + run: | + postman collection run "1147254-bb79b80f-ce5e-4b26-85e2-c21da3697682" \ No newline at end of file