hi, I did run the git hub action but suddenly I keep getting error code 1 on “Run postman collection”
Any idea why? I did not change a thing.
name: Test-Build
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
environment:
description: "Insert the environment"
default: "integration.postman_environment.json"
type: "string"
tags:
description: 'Test scenario tags'
jobs:
test-api:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# INstall Node on the runner
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: '20.x'
# Install the newman command line utility and also install the HTML extra reporter
- name: Install newman
run: |
npm install -g newman
npm install -g newman-reporter-htmlextra
# Make Directory to upload the test results
- name: Make Directory for results
run: mkdir -p testResults
# Run the POSTMAN collection
- name: Run POSTMAN collection
run: |
newman run ./Sanity/Sanity.postman_collection.json -e ./environments/integration.postman_environment.json -r htmlextra --reporter-htmlextra-export testResults/htmlreport.html --reporter-htmlextra-darkTheme
- name: Publish Report
uses: actions/upload-artifact@v2
with:
name: RunReports
path: testResults