Skip to content

Commit 8fd0f17

Browse files
committed
Add Schema Validation to Workflow.
1 parent f391947 commit 8fd0f17

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

.github/workflows/api-test.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: API tests
22

33
on:
44
workflow_dispatch:
5+
push:
6+
branches:
7+
- "add-schema-validation-workflow"
58
schedule:
69
- cron: '0 3 * * 1,2,3,4,5'
710

@@ -17,5 +20,5 @@ jobs:
1720
run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }}
1821
- name: Run API tests
1922
run: |
20-
postman collection run "${{ github.workspace }}/tests/Api/postman/collections/Smoke Test.json" -e "33082135-163b2749-45b5-4967-a48d-ddea0aab6395"
21-
postman collection run "${{ github.workspace }}/tests/Api/postman/collections/Integration Test.json" -e "33082135-163b2749-45b5-4967-a48d-ddea0aab6395"
23+
postman collection run "${{ github.workspace }}/tests/Api/postman/collections/Smoke Test.json" -e "38917228-a7031c27-2010-4199-87c8-38b5039143e7"
24+
postman collection run "${{ github.workspace }}/tests/Api/postman/collections/Integration Test.json" -e "38917228-a7031c27-2010-4199-87c8-38b5039143e7"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Schema Validation
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "add-schema-validation-workflow"
8+
schedule:
9+
- cron: '0 3 * * 1,2,3,4,5'
10+
11+
jobs:
12+
schema-validation:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install Postman CLI
17+
run: |
18+
curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh
19+
- name: Login to Postman CLI
20+
run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }}
21+
- name: Run Schema Validation
22+
run: |
23+
postman collection run 38917228-9dd46798-6140-4954-b9f1-1adcdb28d5de -e 38917228-a7031c27-2010-4199-87c8-38b5039143e7

0 commit comments

Comments
 (0)