From a83f6a62d4dc9c06edcd85394c18c3b838cb00de Mon Sep 17 00:00:00 2001 From: Gabriel Barberini Date: Sat, 16 Sep 2023 11:40:11 -0300 Subject: [PATCH] Create postman_ci --- .github/workflows/postman_ci | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/postman_ci diff --git a/.github/workflows/postman_ci b/.github/workflows/postman_ci new file mode 100644 index 0000000..fef9eed --- /dev/null +++ b/.github/workflows/postman_ci @@ -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 "29631298-e8804ae6-bc75-4ff6-a079-29c80af855ac" -e "29631298-9ca4a2d8-e588-4dd1-ba8b-f182f8b16547"