Skip to content

Commit

Permalink
custom newman tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FleetAdmiralButter committed Sep 21, 2023
1 parent e4ade00 commit ff7b417
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,17 @@ jobs:
else
echo "==> No Postman API test collection is found. Skip the test."
fi
- name: Run custom Newman API tests
if: always()
run: |
if [ -e tests/newman/custom.collection.json ]
then
case ${GITHUB_REF_NAME} in
standby|production)
newman run tests/newman/custom.collection.json --folder default -e tests/newman/tide.environment.json --env-var "host=${BE_BASE_URL}" --env-var "branch=${GITHUB_REF_NAME}" --color on -r htmlextra --reporter-htmlextra-export ./report/custom.collection.report.html;;
*)
newman run tests/newman/custom.collection.json -e tests/newman/tide.environment.json --env-var "host=${BE_BASE_URL}" --env-var "branch=${GITHUB_REF_NAME}" --color on -r htmlextra --reporter-htmlextra-export ./report/custom.collection.report.html;;
esac
else
echo "==> No Postman API test collection is found. Skip the test."
fi

0 comments on commit ff7b417

Please sign in to comment.