Skip to content

Commit

Permalink
Merge pull request #362 from TheTosin/dev
Browse files Browse the repository at this point in the history
Create run-postman-tests.yaml
  • Loading branch information
vicradon authored Aug 24, 2024
2 parents 94d5b73 + aaf7049 commit 780f63e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/run-postman-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Postman Tests Every 15 Minutes

on:
workflow_dispatch:
schedule:
- cron: '*/15 * * * *' # Every 15 minutes

jobs:
run-postman-tests:
runs-on: self-hosted

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
- name: Upload Newman Report to API
run: |
curl -X POST ${{ vars.API_URL }}/api/v1/api-status \
-H "Content-Type: multipart/form-data" \
-F "result_file=@report.json"

0 comments on commit 780f63e

Please sign in to comment.