ci: Modified the logic to get the failed tests in ci-test.yml (#21430)
## Description - Modified the logic to get the failed tests in ci-test.yml ## Type of change - CI ## How Has This Been Tested? - Manual ## Checklist: ### QA activity: - [ ] Test plan has been approved by relevant developers - [ ] Test plan has been peer reviewed by QA - [ ] Cypress test cases have been added and approved by either SDET or manual QA - [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA - [ ] Added Test Plan Approved label after reveiwing all Cypress test
This commit is contained in:
parent
32e9f0d0db
commit
8751d7925d
3
.github/workflows/ci-test.yml
vendored
3
.github/workflows/ci-test.yml
vendored
|
|
@ -370,7 +370,6 @@ jobs:
|
|||
if: always()
|
||||
run: |
|
||||
mkdir -p ~/failed_spec_ci
|
||||
rm -rf ~/failed_spec_ci/*
|
||||
echo "empty" >> ~/failed_spec_ci/dummy-${{ matrix.job }}
|
||||
|
||||
# add list failed tests to a file
|
||||
|
|
@ -378,7 +377,7 @@ jobs:
|
|||
if: failure()
|
||||
run: |
|
||||
cd ${{ github.workspace }}/app/client/cypress/
|
||||
find screenshots -type d|grep -i spec |sed 's/screenshots/cypress\/integration/g' > ~/failed_spec_ci/failed_spec_ci-${{ matrix.job }}
|
||||
find screenshots -type f -iname "*\(attempt 2\).png" | sed 's/screenshots/cypress\/integration/g'| sed 's:/[^/]*$::' > ~/failed_spec_ci/failed_spec_ci-${{ matrix.job }}
|
||||
|
||||
# Upload failed test list using common path for all matrix job
|
||||
- name: Upload failed test list artifact
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user