Skip to content

Commit

Permalink
FRW-8354 Updated composer.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitriyTsemma committed Oct 27, 2024
1 parent be99c3f commit 81ccf4d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ jobs:
- name: Install packages
run: |
sudo apt install awscli -q
sudo apt install jq -q
- name: Install cypress-tests folder
run: |
Expand Down Expand Up @@ -1029,11 +1030,21 @@ jobs:
run: |
docker/sdk exec cypress-tests cp .env.dynamic-store.example .env
docker/sdk exec cypress-tests git log -2
for i in 1 2; do
docker/sdk exec --env "ENV_REPOSITORY_ID=b2c-mp" cypress-tests npm run cy:ci && s=0 && break || s=$? && echo "Test failed, retrying..."
sleep 1
done
(exit $s)
docker/sdk exec --env "ENV_REPOSITORY_ID=b2c-mp" cypress-tests npm run cy:ci -- --reporter json --reporter-options output=results.json || echo "Initial test run failed, checking for retries..."
# for i in 1 2; do
# docker/sdk exec --env "ENV_REPOSITORY_ID=b2c-mp" cypress-tests npm run cy:ci && s=0 && break || s=$? && echo "Test failed, retrying..."
# sleep 1
# done
# (exit $s)
if jq -e '.results | any(.state == "failed")' results.json > /dev/null; then
echo "Retrying failed tests..."
failed_tests=$(jq -r '.results[] | select(.state == "failed") | .title | join(" --spec ")' results.json)
for test in $failed_tests; do
docker/sdk exec --env "ENV_REPOSITORY_ID=b2c-mp" cypress-tests npm run cy:ci -- --spec "$test" || echo "Retry of test $test failed"
done
else
echo "All tests passed, no retries needed."
fi
- name: Upload artifacts
if: failure()
run: |
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 81ccf4d

Please sign in to comment.