From 916c306c9f8d417a637bd86ee05c2d038a69f28e Mon Sep 17 00:00:00 2001 From: Kasper <88646148+yamilt351@users.noreply.github.com> Date: Mon, 17 Jul 2023 17:30:59 -0300 Subject: [PATCH 1/3] Create postman.yml postman automated test add --- .github/workflows/postman.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/postman.yml diff --git a/.github/workflows/postman.yml b/.github/workflows/postman.yml new file mode 100644 index 0000000..54d4b8d --- /dev/null +++ b/.github/workflows/postman.yml @@ -0,0 +1,17 @@ +name: Automated API tests using Postman CLI + +on: push + +jobs: + automated-api-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - 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 + run: | + postman collection run "21643141-29799011-ca72-4eef-beb3-c2925281c1a4" From 05ba1967f344b593b2e5f154fc0019ed28794bcd Mon Sep 17 00:00:00 2001 From: Kasper <88646148+yamilt351@users.noreply.github.com> Date: Mon, 17 Jul 2023 18:01:28 -0300 Subject: [PATCH 2/3] Update postman.yml --- .github/workflows/postman.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/postman.yml b/.github/workflows/postman.yml index 54d4b8d..e2841e6 100644 --- a/.github/workflows/postman.yml +++ b/.github/workflows/postman.yml @@ -14,4 +14,4 @@ jobs: run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }} - name: Run API tests run: | - postman collection run "21643141-29799011-ca72-4eef-beb3-c2925281c1a4" + newman run ".github/workflows/v1.0.0-alpha.postman_collection.json" From 62d529b6367518a3844f616e7a56add907efc599 Mon Sep 17 00:00:00 2001 From: Kasper <88646148+yamilt351@users.noreply.github.com> Date: Mon, 17 Jul 2023 18:06:01 -0300 Subject: [PATCH 3/3] Update postman.yml --- .github/workflows/postman.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/postman.yml b/.github/workflows/postman.yml index e2841e6..261f25c 100644 --- a/.github/workflows/postman.yml +++ b/.github/workflows/postman.yml @@ -14,4 +14,4 @@ jobs: run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }} - name: Run API tests run: | - newman run ".github/workflows/v1.0.0-alpha.postman_collection.json" + newman run "v1.0.0-alpha.postman_collection.json"