feat: setup turbo cache in gh action

This commit is contained in:
braks
2022-11-08 12:52:15 +01:00
committed by Braks
parent 7dfc5f97e0
commit 49c53d0d16

View File

@@ -39,11 +39,20 @@ jobs:
- name: Install dependencies 👨🏻‍💻
run: pnpm install --no-frozen-lockfile
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v2
with:
path: .turbo
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.job }}-${{ github.ref_name }}-
- name: Run linter 🧹
run: pnpm lint
run: pnpm run lint --cache-dir=.turbo
- name: Build Library 👷
run: pnpm build
run: pnpm run build --cache-dir=.turbo
- name: Run tests 🧪
run: pnpm test
run: pnpm run test --cache-dir=.turbo