feat: setup turbo cache in gh action
This commit is contained in:
@@ -39,11 +39,20 @@ jobs:
|
|||||||
- name: Install dependencies 👨🏻💻
|
- name: Install dependencies 👨🏻💻
|
||||||
run: pnpm install --no-frozen-lockfile
|
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 🧹
|
- name: Run linter 🧹
|
||||||
run: pnpm lint
|
run: pnpm run lint --cache-dir=.turbo
|
||||||
|
|
||||||
- name: Build Library 👷
|
- name: Build Library 👷
|
||||||
run: pnpm build
|
run: pnpm run build --cache-dir=.turbo
|
||||||
|
|
||||||
- name: Run tests 🧪
|
- name: Run tests 🧪
|
||||||
run: pnpm test
|
run: pnpm run test --cache-dir=.turbo
|
||||||
|
|||||||
Reference in New Issue
Block a user