ci: Updated the workflow files to use actions/cache@v3 (#21669)
## Description - Updated the workflow files to use actions/cache@v3 ## Type of change - yml file changes ## 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
c295d0618a
commit
bc79466a99
4
.github/workflows/ci-test.yml
vendored
4
.github/workflows/ci-test.yml
vendored
|
|
@ -89,13 +89,11 @@ jobs:
|
||||||
# In case this is second attempt try restoring failed tests
|
# In case this is second attempt try restoring failed tests
|
||||||
- name: Restore the previous failed combine result
|
- name: Restore the previous failed combine result
|
||||||
if: steps.run_result.outputs.run_result == 'failedtest'
|
if: steps.run_result.outputs.run_result == 'failedtest'
|
||||||
uses: martijnhols/actions-cache/restore@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/combined_failed_spec_ci
|
~/combined_failed_spec_ci
|
||||||
key: ${{ github.run_id }}-"ci-test-result"
|
key: ${{ github.run_id }}-"ci-test-result"
|
||||||
restore-keys: |
|
|
||||||
${{ github.run_id }}-${{ github.job }}
|
|
||||||
|
|
||||||
# failed_spec_env will contain list of all failed specs
|
# failed_spec_env will contain list of all failed specs
|
||||||
# We are using environment variable instead of regular to support multiline
|
# We are using environment variable instead of regular to support multiline
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ jobs:
|
||||||
|
|
||||||
# Download failed_spec list for all jobs
|
# Download failed_spec list for all jobs
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
if: needs.ci-test.result
|
if: needs.ci-test.result != 'success'
|
||||||
id: download_ci
|
id: download_ci
|
||||||
with:
|
with:
|
||||||
name: failed-spec-ci
|
name: failed-spec-ci
|
||||||
|
|
@ -133,13 +133,11 @@ jobs:
|
||||||
# Force save the CI failed spec list into a cache
|
# Force save the CI failed spec list into a cache
|
||||||
- name: Store the combined run result for CI
|
- name: Store the combined run result for CI
|
||||||
if: needs.ci-test.result != 'success'
|
if: needs.ci-test.result != 'success'
|
||||||
uses: martijnhols/actions-cache/save@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/combined_failed_spec_ci
|
~/combined_failed_spec_ci
|
||||||
key: ${{ github.run_id }}-"ci-test-result"
|
key: ${{ github.run_id }}-"ci-test-result"
|
||||||
restore-keys: |
|
|
||||||
${{ github.run_id }}-${{ github.job }}
|
|
||||||
|
|
||||||
# Upload combined failed CI spec list to a file
|
# Upload combined failed CI spec list to a file
|
||||||
# This is done for debugging.
|
# This is done for debugging.
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ jobs:
|
||||||
|
|
||||||
# Download failed_spec_ci list for all CI container jobs
|
# Download failed_spec_ci list for all CI container jobs
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
if: needs.ci-test.result
|
if: needs.ci-test.result != 'success'
|
||||||
id: download_ci
|
id: download_ci
|
||||||
with:
|
with:
|
||||||
name: failed-spec-ci
|
name: failed-spec-ci
|
||||||
|
|
@ -114,13 +114,11 @@ jobs:
|
||||||
# Force save the CI failed spec list into a cache
|
# Force save the CI failed spec list into a cache
|
||||||
- name: Store the combined run result for CI
|
- name: Store the combined run result for CI
|
||||||
if: needs.ci-test.result != 'success'
|
if: needs.ci-test.result != 'success'
|
||||||
uses: martijnhols/actions-cache/save@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/combined_failed_spec_ci
|
~/combined_failed_spec_ci
|
||||||
key: ${{ github.run_id }}-"ci-test-result"
|
key: ${{ github.run_id }}-"ci-test-result"
|
||||||
restore-keys: |
|
|
||||||
${{ github.run_id }}-${{ github.job }}
|
|
||||||
|
|
||||||
# Upload combined failed CI spec list to a file
|
# Upload combined failed CI spec list to a file
|
||||||
# This is done for debugging.
|
# This is done for debugging.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user