Skip to content

Commit

Permalink
Updated newman workflow to create a new customer per run
Browse files Browse the repository at this point in the history
  • Loading branch information
jaaufauvre committed Jun 5, 2023
1 parent 0e175a6 commit 7e098bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/newman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,20 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup (1)
uses: actions/checkout@v3
with:
repository: Mastercard/finicity-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": "${{ secrets.CUSTOMER_ID }}" } ]'
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: finicity.postman_collection.json
folder: '[ "All APIs" ]'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following workflow runs the collection and ensures it can be used to consume

1. [Fork this repository](https://github.com/Mastercard/finicity-postman/fork)
2. Go to _Settings_ > _Secrets_ > _Actions_
3. Create new repository secrets: `PARTNER_ID`, `PARTNER_SECRET`, `APP_KEY` and `CUSTOMER_ID`
3. Create new repository secrets: `PARTNER_ID`, `PARTNER_SECRET` and `APP_KEY`
4. Enable workflows in the _Actions_ tab
5. Click _Run workflow_ under _Newman_. Expected result: :heavy_check_mark:

Expand Down

0 comments on commit 7e098bc

Please sign in to comment.