feat: setup turbo cache in gh action
This commit is contained in:
15
.github/workflows/build-and-test.yml
vendored
15
.github/workflows/build-and-test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user