Skip to content

Commit

Permalink
[CI] Restore cached tests history in PRs (#5724)
Browse files Browse the repository at this point in the history
  • Loading branch information
valfirst authored Feb 14, 2025
1 parent a5eac65 commit 1072d4a
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,9 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-wrapper-
- name: Cache tests history
if: github.ref == 'refs/heads/master'
uses: actions/cache@v4
- name: Restore cached tests history
uses: actions/cache/restore@v4
with:
save-always: true
path: vividus-tests/output/history
key: kafka-tests-history-cache-${{ github.sha }}
restore-keys: |
Expand Down Expand Up @@ -700,6 +698,14 @@ jobs:
name: System Kafka Tests - Report
path: vividus-tests/output/reports/allure

- name: Cache tests history
if: always() && github.ref == 'refs/heads/master'
uses: actions/cache/save@v4
with:
path: vividus-tests/output/history
key: kafka-tests-history-cache-${{ github.sha }}
restore-keys: |
kafka-tests-history-cache-
system-mobile-tests-on-saucelabs:
if: github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]'
Expand Down Expand Up @@ -730,11 +736,9 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-wrapper-
- name: Cache tests history
if: github.ref == 'refs/heads/master'
uses: actions/cache@v4
- name: Restore cached tests history
uses: actions/cache/restore@v4
with:
save-always: true
path: vividus-tests/output/history
key: mobile-tests-on-saucelabs-history-cache-${{ github.sha }}
restore-keys: |
Expand Down Expand Up @@ -907,3 +911,13 @@ jobs:
with:
name: SauceLabs - System Tests With Proxy - Report - Android
path: vividus-tests/output/reports/sl-android-proxy-allure

- name: Cache tests history
if: always() && github.ref == 'refs/heads/master'
uses: actions/cache/save@v4
with:
path: vividus-tests/output/history
key: mobile-tests-on-saucelabs-history-cache-${{ github.sha }}
restore-keys: |
mobile-tests-on-saucelabs-history-cache-

0 comments on commit 1072d4a

Please sign in to comment.