-
Notifications
You must be signed in to change notification settings - Fork 23
32 lines (32 loc) · 1.1 KB
/
newman.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Newman
'on':
push:
branches:
- '**'
pull_request:
branches:
- '**'
schedule:
- cron: 0 5 * * *
workflow_dispatch: null
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup (1)
uses: actions/checkout@v3
with:
repository: Mastercard/open-banking-us-openapi
- name: Setup (2)
id: setup
run: |
customer_id=$(./bin/setup.sh ${{ secrets.PARTNER_ID }} ${{ secrets.PARTNER_SECRET }} ${{ secrets.APP_KEY }} --no-interaction | grep -oP '(?<=CUSTOMER_ID: )\d+')
echo "customer_id=$customer_id" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
- name: Newman
uses: matt-ball/[email protected]
with:
envVar: '[{ "key": "appKey", "value": "${{ secrets.APP_KEY }}" }, { "key": "partnerId", "value": "${{ secrets.PARTNER_ID }}" }, { "key": "partnerSecret", "value": "${{ secrets.PARTNER_SECRET }}" }, { "key": "customerId", "value": "${{ env.customer_id }}" } ]'
collection: openbanking-us.postman_collection.json
folder: '[ "All APIs" ]'