Skip to content

Rename environment and collection files for consistency in naming #7

Rename environment and collection files for consistency in naming

Rename environment and collection files for consistency in naming #7

Workflow file for this run

name: Postman/Newman tests
on:
push:
branches: [ main ]
pull_request:
jobs:
run-postman-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Newman
run: npm install -g newman
- name: Run Newman tests
run: |
newman run "Store_API.postman_collection.json" \
--environment "PROD_StoreAPI_JMR.postman_environment.json" \
--folder 'Order Creation E2E' \
--reporters cli,html \
--reporter-html-export newman-report.html
- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: newman-html-report
path: newman-report.html