Skip to content

Commit a29e08d

Browse files
authored
chore: implement turbo CI cache (FuelLabs#1649)
* chore: changeset * chore: add turbo cache to CI
1 parent e244292 commit a29e08d

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.changeset/gold-pandas-double.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/actions/ci-setup/action.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ runs:
1414
with:
1515
path: ~/.local/share/pnpm/store/v4
1616
key: ${{ runner.os }}-node-${{ inputs.node-version }}-pnpm-${{ inputs.pnpm-version }}-lock-${{ hashFiles('**/pnpm-lock.yaml') }}
17-
restore-keys: |
18-
${{ runner.os }}-pnpm
17+
18+
- name: Cache Build
19+
uses: actions/cache@v3
20+
with:
21+
path: .turbo
22+
key: ${{ runner.os }}-turbo-${{ github.sha }}
1923

2024
- name: Setup Node.js
2125
uses: actions/setup-node@v2

.github/actions/test-setup/action.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ runs:
1414
with:
1515
path: ~/.local/share/pnpm/store/v4
1616
key: ${{ runner.os }}-node-${{ inputs.node-version }}-pnpm-${{ inputs.pnpm-version }}-lock-${{ hashFiles('**/pnpm-lock.yaml') }}
17-
restore-keys: |
18-
${{ runner.os }}-pnpm
17+
18+
- name: Cache Build
19+
uses: actions/cache@v3
20+
with:
21+
path: .turbo
22+
key: ${{ runner.os }}-turbo-${{ github.sha }}
1923

2024
- name: Setup Node.js
2125
uses: actions/setup-node@v2

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"scripts": {
1313
"dan": "tsx ./scripts/release-unpublish.ts",
1414
"dev": "nodemon --config nodemon.config.json -x 'pnpm build:packages'",
15-
"build": "turbo run build",
15+
"build": "turbo run build --cache-dir=.turbo",
1616
"build:packages": "turbo run build --filter=!docs",
1717
"ci:test": "./scripts/ci-test.sh",
1818
"pretest": "turbo run pretest",

0 commit comments

Comments
 (0)