diff --git a/.github/workflows/build-client-server.yml b/.github/workflows/build-client-server.yml index 9e3b7a4773..446cd004ee 100644 --- a/.github/workflows/build-client-server.yml +++ b/.github/workflows/build-client-server.yml @@ -27,11 +27,23 @@ jobs: secrets: inherit with: pr: 0 + + build-docker-image: + needs: [ client-build, server-build, rts-build ] + # Only run if the build step is successful + if: success() + name: build-docker-image + uses: ./.github/workflows/build-docker-image.yml + secrets: inherit + with: + pr: 0 ci-test-limited: - needs: [ client-build, server-build, rts-build ] + needs: [ build-docker-image ] + # Only run if the build step is successful + if: success() name: ci-test-limited uses: ./.github/workflows/ci-test-limited.yml secrets: inherit with: - pr: 0 \ No newline at end of file + pr: 0 diff --git a/.github/workflows/ci-test-limited.yml b/.github/workflows/ci-test-limited.yml index f70e8d0e7e..63f1ace540 100644 --- a/.github/workflows/ci-test-limited.yml +++ b/.github/workflows/ci-test-limited.yml @@ -71,46 +71,15 @@ jobs: echo "$specs_to_run" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV - - name: Download the client build artifact - if: steps.run_result.outputs.run_result != 'success' + - name: Download Docker image artifact uses: actions/download-artifact@v3 with: - name: client-build - path: app/client + name: cicontainer - - name: Unpack the client build artifact - if: steps.run_result.outputs.run_result != 'success' + - name: Load Docker image from tar file run: | - mkdir -p app/client/build - tar -xvf app/client/build.tar -C app/client/build - - - name: Download the server build artifact - if: steps.run_result.outputs.run_result != 'success' - uses: actions/download-artifact@v3 - with: - name: server-build - path: app/server/dist/ - - - name: Download the rts build artifact - if: steps.run_result.outputs.run_result != 'success' - uses: actions/download-artifact@v3 - with: - name: rts-dist - path: app/rts/dist - - - name: Un-tar 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 - - # We don't use Depot Docker builds because it's faster for local Docker images to be built locally. - # It's slower and more expensive to build these Docker images on Depot and download it back to the CI node. - - name: Build docker image - if: steps.run_result.outputs.run_result != 'success' - working-directory: "." - run: | - docker build -t cicontainer . + gunzip cicontainer.tar.gz + docker load -i cicontainer.tar - name: Create folder working-directory: "." @@ -212,6 +181,7 @@ jobs: APPSMITH_DISABLE_TELEMETRY: true APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }} POSTGRES_PASSWORD: postgres + CYPRESS_VERIFY_TIMEOUT: 100000 run: | cd app/client chmod a+x ./cypress/setup-test-ci.sh @@ -266,6 +236,7 @@ jobs: APPSMITH_DISABLE_TELEMETRY: true APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }} COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }} + CYPRESS_VERIFY_TIMEOUT: 100000 with: browser: ${{ env.BROWSER_PATH }} headless: true