From 25508563fb5d999d5187bf0d967372de1cb48492 Mon Sep 17 00:00:00 2001 From: Saroj <43822041+sarojsarab@users.noreply.github.com> Date: Tue, 12 Dec 2023 14:05:34 +0530 Subject: [PATCH] ci: Fix for the junit run-result cache saving issue (#29529) ## Description Currently, when we run the server build without tests, we still try to check the cache for run-result, but as the cache is not present during the first run, where we just build the server, and on the success of the workflow, actions/cache create the cache with the specified key, Which is creating an issue while we try to save the actual run-result cache when we run the tests in server-unit-tests. Solution : - Added a condition to check the cache present only while running tests #### Type of change - Workflow changes (server-build.yml) ## Testing - Workflow run ## Summary by CodeRabbit - **Refactor** - Updated the server build process to conditionally skip certain steps based on user input. - **Chores** - Improved automation in the build workflow to enhance efficiency. --- .github/workflows/server-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/server-build.yml b/.github/workflows/server-build.yml index 89202df576..35c1de30ec 100644 --- a/.github/workflows/server-build.yml +++ b/.github/workflows/server-build.yml @@ -73,6 +73,7 @@ jobs: # In case this is second attempt try restoring status of the prior attempt from cache - name: Restore the previous run result + if: inputs.skip-tests != 'true' id: cache-appsmith uses: actions/cache@v3 with: