Skip to content

Use turbo actions caching for faster builds #182

Use turbo actions caching for faster builds

Use turbo actions caching for faster builds #182

Workflow file for this run

name: Pull Request
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: 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 }}-${{ github.sha }}
turbo-${{ github.job }}-${{ github.ref_name }}-
turbo-${{ github.job }}-
- name: Build
run: yarn build --cache-dir=".turbo"
env:
NODE_ENV: production
- name: Lint
run: yarn lint --cache-dir=".turbo"
- name: Test
run: yarn test --cache-dir=".turbo"