Rename environment and collection files for consistency in naming #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |