From b72cc7f9fb7ba2fcdea805b0a6a3ecc793e73f21 Mon Sep 17 00:00:00 2001 From: Ricki Hirner Date: Tue, 9 Apr 2024 17:44:14 +0200 Subject: [PATCH] [CI] Fix test workflows (main branch condition, cache names) --- .github/workflows/test-dev.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-dev.yml b/.github/workflows/test-dev.yml index 027d01df..4b955f42 100644 --- a/.github/workflows/test-dev.yml +++ b/.github/workflows/test-dev.yml @@ -35,7 +35,7 @@ jobs: .gradle/configuration-cache app/build - name: Use app/build and gradle configuration cache - if: ${{ env.is_main_branch }} + if: ${{ !env.is_main_branch }} uses: actions/cache/restore@v4 with: key: app_build-tests-without-emulator @@ -65,16 +65,16 @@ jobs: if: ${{ env.is_main_branch }} uses: actions/cache@v4 with: - key: app_build-tests-without-emulator-${{ github.run_id }} + key: app_build-tests-with-emulator-${{ github.run_id }} path: | .gradle/configuration-cache app/build - name: Use app/build and gradle configuration cache - if: ${{ env.is_main_branch }} + if: ${{ !env.is_main_branch }} uses: actions/cache/restore@v4 with: - key: app_build-tests-without-emulator - restore-keys: app_build-tests-without-emulator- # restore cache from dev branch + key: app_build-tests-with-emulator + restore-keys: app_build-tests-with-emulator- # restore cache from dev branch path: | .gradle/configuration-cache app/build