Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Add validation and error handling to postRoutes #16

Add validation and error handling to postRoutes

Add validation and error handling to postRoutes #16

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: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Login to Postman CLI
run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }}
- name: Run posts tests
run: |
postman collection run 32854919-ced710d2-8af1-4f36-bdc1-027dce3c78af -i 32854919-68fb46d3-8dcf-4965-ae19-063315b21e38
- name: run users tests
run: |
postman collection run 32854919-ced710d2-8af1-4f36-bdc1-027dce3c78af -i 32854919-df352302-1081-4e05-beb5-b6e62127eb13