Skip to content

Commit 00e2146

Browse files
committed
ci: use turbo remote cache
Signed-off-by: braks <[email protected]>
1 parent bea97b3 commit 00e2146

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/build-and-test.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ concurrency:
1515
jobs:
1616
build-and-test:
1717
runs-on: ${{ matrix.os }}
18-
18+
env:
19+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
20+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
1921
strategy:
2022
matrix:
2123
os: [ubuntu-latest]
@@ -34,23 +36,14 @@ jobs:
3436
- name: Install Dependencies 👨🏻‍💻
3537
uses: ./.github/actions/install-dependencies
3638

37-
- name: Setup Turbo cache 🏎️
38-
id: turbo-cache
39-
uses: actions/cache@v4
40-
with:
41-
path: .turbo
42-
key: turbo-${{ runner.os }}-${{ github.sha }}
43-
restore-keys: |
44-
turbo-${{ runner.os }}-
45-
4639
- name: Run linter 🧹
47-
run: pnpm run lint --cache-dir=.turbo
40+
run: pnpm run lint
4841

4942
- name: Build Library 👷
50-
run: pnpm run build --cache-dir=.turbo
43+
run: pnpm run build
5144

5245
- name: Run tests 🧪
5346
uses: cypress-io/github-action@v6
5447
with:
5548
install-command: pnpm cypress install
56-
command: pnpm run test --cache-dir=.turbo
49+
command: pnpm run test

0 commit comments

Comments
 (0)