From 5efaec2bafaebdc530d1d86d357978836aab6d9e Mon Sep 17 00:00:00 2001 From: antoniotarricone Date: Sat, 1 Jun 2024 11:13:12 +0200 Subject: [PATCH 1/2] Added a warmup step before execute tests. --- .github/workflows/post-merge.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 7773dbee..4de43e23 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -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. # @@ -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. # From 4ff7d1253776befcb4c800c381611856939ca7c9 Mon Sep 17 00:00:00 2001 From: antoniotarricone Date: Sat, 1 Jun 2024 11:28:39 +0200 Subject: [PATCH 2/2] Fixed command to warmup test step. --- .github/workflows/post-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 4de43e23..d283939f 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -217,7 +217,7 @@ jobs: if: steps.semantic.outputs.new_release_published == 'true' run: | newman run src/test/postman/mil-auth.postman_collection.json \ - -x + -x \ -e src/test/postman/dev.postman_environment.json \ --env-var "correctPassword=${{ secrets.NEWMAN_IT__CORRECTPASSWORD }}" \ --env-var "correctClientSecret=${{ secrets.NEWMAN_IT__CORRECTCLIENTSECRET }}" \