From 22ee77145a46e158900e36aeedc7ca96a97c2ac9 Mon Sep 17 00:00:00 2001 From: Paul Rastoin <45004772+prastoin@users.noreply.github.com> Date: Fri, 17 Jan 2025 08:06:30 +0100 Subject: [PATCH] [CI] `ci-server` reorder `twenty-shared` build after cache restoration (#9672) # Introduction Unless I'm mistaken we can win few seconds `~12s` by reordering the `twenty-shared` build step after the cache restoration in order for `nx` to hit it if possible. [Related run](https://github.com/twentyhq/twenty/actions/runs/12809421832/job/35714544486) --- .github/workflows/ci-server.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index e4c105799..b72f73563 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -55,13 +55,13 @@ jobs: fetch-depth: 0 - name: Install dependencies uses: ./.github/workflows/actions/yarn-install - - name: Build twenty-shared - run: npx nx build twenty-shared - name: Restore server setup id: restore-server-setup-cache uses: ./.github/workflows/actions/restore-cache with: key: ${{ env.SERVER_SETUP_CACHE_KEY }} + - name: Build twenty-shared + run: npx nx build twenty-shared - name: Server / Run lint & typecheck uses: ./.github/workflows/actions/nx-affected with: