Skip to content

Commit

Permalink
fix: Added a warmup step before executing tests. (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone authored Jun 1, 2024
1 parent 1eb9919 commit 2b0a39d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,20 @@ jobs:
if: steps.semantic.outputs.new_release_published == 'true'
run: npm install -g newman

#
# Run Postman collection.
#
- name: Run Postman collection (warmup)
if: steps.semantic.outputs.new_release_published == 'true'
run: |
newman run src/test/postman/mil-auth.postman_collection.json \
-x
-e src/test/postman/dev.postman_environment.json \
--env-var "correctPassword=${{ secrets.NEWMAN_IT__CORRECTPASSWORD }}" \
--env-var "correctClientSecret=${{ secrets.NEWMAN_IT__CORRECTCLIENTSECRET }}" \
--env-var "correctClientSecretForVasLayer=${{ secrets.NEWMAN_IT__CORRECTCLIENTSECRETFORVASLAYER }}" \
--env-var "clientSecretForMilDebtPosition=${{ secrets.NEWMAN_IT__CLIENTSECRETFORMILDEBTPOSITION }}"
#
# Run Postman collection.
#
Expand All @@ -222,7 +236,7 @@ jobs:
--env-var "correctClientSecret=${{ secrets.NEWMAN_IT__CORRECTCLIENTSECRET }}" \
--env-var "correctClientSecretForVasLayer=${{ secrets.NEWMAN_IT__CORRECTCLIENTSECRETFORVASLAYER }}" \
--env-var "clientSecretForMilDebtPosition=${{ secrets.NEWMAN_IT__CLIENTSECRETFORMILDEBTPOSITION }}"
#
# STABLE - Update of pom.xml with the new version.
#
Expand Down

0 comments on commit 2b0a39d

Please sign in to comment.