mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-10-07 03:42:59 +00:00
[CI] Fix test workflows (main branch condition, cache names)
This commit is contained in:
parent
3023a935a8
commit
b72cc7f9fb
10
.github/workflows/test-dev.yml
vendored
10
.github/workflows/test-dev.yml
vendored
|
@ -35,7 +35,7 @@ jobs:
|
||||||
.gradle/configuration-cache
|
.gradle/configuration-cache
|
||||||
app/build
|
app/build
|
||||||
- name: Use app/build and gradle configuration cache
|
- name: Use app/build and gradle configuration cache
|
||||||
if: ${{ env.is_main_branch }}
|
if: ${{ !env.is_main_branch }}
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
key: app_build-tests-without-emulator
|
key: app_build-tests-without-emulator
|
||||||
|
@ -65,16 +65,16 @@ jobs:
|
||||||
if: ${{ env.is_main_branch }}
|
if: ${{ env.is_main_branch }}
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: app_build-tests-without-emulator-${{ github.run_id }}
|
key: app_build-tests-with-emulator-${{ github.run_id }}
|
||||||
path: |
|
path: |
|
||||||
.gradle/configuration-cache
|
.gradle/configuration-cache
|
||||||
app/build
|
app/build
|
||||||
- name: Use app/build and gradle configuration cache
|
- name: Use app/build and gradle configuration cache
|
||||||
if: ${{ env.is_main_branch }}
|
if: ${{ !env.is_main_branch }}
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
key: app_build-tests-without-emulator
|
key: app_build-tests-with-emulator
|
||||||
restore-keys: app_build-tests-without-emulator- # restore cache from dev branch
|
restore-keys: app_build-tests-with-emulator- # restore cache from dev branch
|
||||||
path: |
|
path: |
|
||||||
.gradle/configuration-cache
|
.gradle/configuration-cache
|
||||||
app/build
|
app/build
|
||||||
|
|
Loading…
Reference in a new issue