Skip to content

Run Postman Tests Every 15 Minutes #454

Run Postman Tests Every 15 Minutes

Run Postman Tests Every 15 Minutes #454

name: Run Postman Tests Every 15 Minutes
on:
workflow_dispatch:
schedule:
- cron: '*/15 * * * *' # Every 15 minutes
jobs:
run-postman-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Newman
run: npm install -g newman
- name: Run Newman tests
id: newman
run: |
newman run status/postman/KimikoGolangSwagger.postman_collection.json --reporters cli,json --reporter-json-export report.json
continue-on-error: true
- name: Upload Newman Report to API
run: |
curl -X POST ${{ vars.API_URL }}/api/v1/api-status \
-H "Content-Type: multipart/form-data" \
-F "[email protected]"