Update postman-tests.yml #3
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: Run Postman Collection | |
| on: [push] | |
| jobs: | |
| run-postman-collection: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Install Dependencies | |
| run: | | |
| npm install | |
| npm install -g newman-reporter-htmlextra | |
| echo "Check dependencies version" | |
| npx newman --version | |
| npx newman-reporter-htmlextra --version | |
| - name: Run Postman collection | |
| run: | | |
| echo "Creating report directory" | |
| mkdir -p ./newman | |
| npx newman run ./Ardilla_Retail_Withdrawal_Requests_web.postman_collection.json -r cli,htmlextra --reporter-htmlextra-export ./newman/results.html | |
| - name: Check if results.html exists | |
| run: ls -l ./newman | |
| - name: Upload Test Results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: postman-test-results | |
| path: ./newman/results.html |