Bläddra i källkod

Merge pull request #1619 from Kilo-Org/catrielmuller/turbo-remote-cache

Turbo remote cache
Christiaan Arnoldus 6 månader sedan
förälder
incheckning
5b13574e28

+ 30 - 0
.github/workflows/code-qa.yml

@@ -11,6 +11,8 @@ on:
 env:
     NODE_VERSION: 20.19.2
     PNPM_VERSION: 10.8.1
+    TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+    TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
 
 jobs:
     compile:
@@ -27,6 +29,13 @@ jobs:
               with:
                   node-version: ${{ env.NODE_VERSION }}
                   cache: "pnpm"
+            - name: Turbo cache setup
+              uses: actions/cache@v4
+              with:
+                  path: .turbo
+                  key: ${{ runner.os }}-turbo-${{ github.sha }}
+                  restore-keys: |
+                      ${{ runner.os }}-turbo-
             - name: Install dependencies
               run: pnpm install
             - name: Build
@@ -50,6 +59,13 @@ jobs:
               with:
                   node-version: "18"
                   cache: "pnpm"
+            - name: Turbo cache setup
+              uses: actions/cache@v4
+              with:
+                  path: .turbo
+                  key: ${{ runner.os }}-turbo-${{ github.sha }}
+                  restore-keys: |
+                      ${{ runner.os }}-turbo-
             - name: Install dependencies
               run: pnpm install
             - name: Verify all translations are complete
@@ -72,6 +88,13 @@ jobs:
               with:
                   node-version: ${{ env.NODE_VERSION }}
                   cache: "pnpm"
+            - name: Turbo cache setup
+              uses: actions/cache@v4
+              with:
+                  path: .turbo
+                  key: ${{ runner.os }}-turbo-${{ github.sha }}
+                  restore-keys: |
+                      ${{ runner.os }}-turbo-
             - name: Install dependencies
               run: pnpm install
             - name: Build (to build and copy WASM files)
@@ -97,6 +120,13 @@ jobs:
               with:
                   node-version: "18"
                   cache: "pnpm"
+            - name: Turbo cache setup
+              uses: actions/cache@v4
+              with:
+                  path: .turbo
+                  key: ${{ runner.os }}-turbo-${{ github.sha }}
+                  restore-keys: |
+                      ${{ runner.os }}-turbo-
             - name: Install dependencies
               run: pnpm install
             - name: Run unit tests

+ 9 - 0
.github/workflows/marketplace-publish.yml

@@ -8,6 +8,8 @@ env:
     GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
     NODE_VERSION: 20.19.2
     PNPM_VERSION: 10.8.1
+    TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+    TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
 
 jobs:
     publish-extension:
@@ -33,6 +35,13 @@ jobs:
               with:
                   node-version: ${{ env.NODE_VERSION }}
                   cache: "pnpm"
+            - name: Turbo cache setup
+              uses: actions/cache@v4
+              with:
+                  path: .turbo
+                  key: ${{ runner.os }}-turbo-${{ github.sha }}
+                  restore-keys: |
+                      ${{ runner.os }}-turbo-
             - name: Install dependencies
               run: pnpm install
             - name: Configure Git

+ 10 - 0
.github/workflows/storybook-playwright-snapshot.yml

@@ -18,6 +18,8 @@ env:
     COMPOSE_DOCKER_CLI_BUILD: 1
     NODE_VERSION: 20.19.2
     PNPM_VERSION: 10.8.1
+    TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+    TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
 
 jobs:
     storybook-playwright-snapshot:
@@ -42,6 +44,14 @@ jobs:
                   node-version: ${{ env.NODE_VERSION }}
                   cache: "pnpm"
 
+            - name: Turbo cache setup
+              uses: actions/cache@v4
+              with:
+                  path: .turbo
+                  key: ${{ runner.os }}-turbo-${{ github.sha }}
+                  restore-keys: |
+                      ${{ runner.os }}-turbo-
+
             - name: Install dependencies
               run: pnpm install --frozen-lockfile