Skip to content

Commit

Permalink
Updated YML file
Browse files Browse the repository at this point in the history
  • Loading branch information
radomyr-horban committed Nov 12, 2023
1 parent 3c34b2d commit 551b661
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/postman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,22 @@ jobs:
npm install -g newman-reporter-htmlextra
# Make directory to upload the test results
- name: Make Directory for results
run: mkdir -p testResults
# - name: Make Directory for results
# run: mkdir -p testResults

# Run the POSTMAN collection
- name: Run POSTMAN collection
continue-on-error: true
run: |
newman run collections/petstore.collection.json -r htmlextra --reporter-htmlextra-export testResults/index.html
newman run collections/petstore.collection.json -r htmlextra --reporter-htmlextra-export newman/index.html
# Upload the contents of Test Results directory to workspace
- name: Output the run Details
uses: actions/upload-artifact@v2
with:
name: RunReports
path: testResults
# path: testResults
path: newman

- name: Create a new branch for report
uses: actions/checkout@v3
Expand All @@ -50,4 +51,5 @@ jobs:
with:
personal_token: ${{secrets.GITHUB_TOKEN}}
publish_branch: gh-pages
publish_dir: testResults
# publish_dir: testResults
publish_dir: newman

0 comments on commit 551b661

Please sign in to comment.