From 3f978437a0d65dd51dd04c8070b9d867085c376f Mon Sep 17 00:00:00 2001 From: yatinappsmith <84702014+yatinappsmith@users.noreply.github.com> Date: Sun, 18 Sep 2022 12:38:40 +0530 Subject: [PATCH] ci: Fix ci cache & rts build for push workflow (#16850) * fix download rts * fix cache for ui-test --- .github/workflows/test-build-docker-image.yml | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-build-docker-image.yml b/.github/workflows/test-build-docker-image.yml index 64cddad0da..b3163e8e59 100644 --- a/.github/workflows/test-build-docker-image.yml +++ b/.github/workflows/test-build-docker-image.yml @@ -383,9 +383,8 @@ jobs: run: | ls -al dist/node_modules/@shared/ast tar -cvf rts-dist.tar dist - - # Upload the build artifact so that it can be used by the test & deploy job in the workflow - - name: Upload server build bundle + # Upload the build artifacts and dependencies so that it can be used by the test & deploy job in other workflows + - name: Upload rts build bundle uses: actions/upload-artifact@v2 with: name: rts-dist @@ -727,9 +726,15 @@ jobs: - name: Download the rts build artifact uses: actions/download-artifact@v2 with: - name: rts-build + name: rts-dist path: app/rts/dist + - name: Untar the rts folder + run: | + tar -xvf app/rts/dist/rts-dist.tar -C app/rts/ + echo "Cleaning up the tar files" + rm app/rts/dist/rts-dist.tar + - name: Download the rts build artifact uses: actions/download-artifact@v2 with: @@ -1073,7 +1078,7 @@ jobs: with: path: | ~/run_result - key: ${{ github.run_id }}-${{ github.job }}-${{ steps.timestamp.outputs.timestamp }}-${{ matrix.job }} + key: ${{ github.run_id }}-${{ github.job }}-${{ matrix.job }} restore-keys: | ${{ github.run_id }}-${{ github.job }}-${{ matrix.job }} @@ -1089,7 +1094,7 @@ jobs: with: path: | ~/combined_failed_spec - key: ${{ github.run_id }}-"ui-test-result"-${{ steps.timestamp.outputs.timestamp }} + key: ${{ github.run_id }}-"ui-test-result" restore-keys: | ${{ github.run_id }}-${{ github.job }} @@ -1401,7 +1406,7 @@ jobs: with: path: | app/client/cypress/snapshots/ - key: ${{ github.run_id }}-${{ github.job }}-${{ steps.timestamp.outputs.timestamp }}-${{ matrix.job }} + key: ${{ github.run_id }}-${{ github.job }}-${{ matrix.job }} restore-keys: | ${{ github.run_id }}-${{ github.job }}-${{ matrix.job }} @@ -1457,7 +1462,7 @@ jobs: with: path: | ~/combined_failed_spec - key: ${{ github.run_id }}-"ui-test-result"-${{ steps.timestamp.outputs.timestamp }} + key: ${{ github.run_id }}-"ui-test-result" restore-keys: | ${{ github.run_id }}-${{ github.job }}