Skip to content

Commit 43cb289

Browse files
committed
chore(ci): correct the Turbo cache benchmark
1 parent 8702179 commit 43cb289

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,22 @@ on:
77
description: The image tag to publish
88
required: true
99
type: string
10+
typecheck_only:
11+
description: Only run the typecheck job
12+
required: false
13+
default: false
14+
type: boolean
1015
workflow_call:
1116
inputs:
1217
image_tag:
1318
description: The image tag to publish
1419
required: true
1520
type: string
21+
typecheck_only:
22+
description: Only run the typecheck job
23+
required: false
24+
default: false
25+
type: boolean
1626
secrets:
1727
DOCKERHUB_USERNAME:
1828
required: false
@@ -63,12 +73,14 @@ jobs:
6373
uses: ./.github/workflows/typecheck.yml
6474

6575
units:
76+
if: ${{ !inputs.typecheck_only }}
6677
uses: ./.github/workflows/unit-tests.yml
6778
secrets:
6879
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
6980
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
7081

7182
publish-webapp:
83+
if: ${{ !inputs.typecheck_only }}
7284
needs: [typecheck]
7385
permissions:
7486
contents: read
@@ -85,6 +97,7 @@ jobs:
8597
image_registry: ${{ vars.IMAGE_REGISTRY || format('ghcr.io/{0}', github.repository_owner) }}
8698

8799
publish-worker-v4:
100+
if: ${{ !inputs.typecheck_only }}
88101
needs: [typecheck]
89102
permissions:
90103
contents: read

.github/workflows/typecheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Restore Turbo cache
3232
uses: WarpBuilds/cache@40f3443ae7b70e568d6e2070ea897f3df94d7553 # v1
3333
with:
34-
path: .turbo
34+
path: node_modules/.cache/turbo
3535
key: turbo-typecheck-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }}
3636
restore-keys: |
3737
turbo-typecheck-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-

0 commit comments

Comments
 (0)