Skip to content

Update pipeline-demo.yaml #12

Update pipeline-demo.yaml

Update pipeline-demo.yaml #12

Workflow file for this run

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 "${{ github.workspace }}/postman/collections/Customers CHALLENGE.json" --integration-id "146073-${{ github.run_id }}" -i 'CRUD Challenge'
# Lint your API using Postman CLI
postman api lint 5a04480e-281f-45b0-af8f-468d33554fd4 --integration-id 146073