Use turbo actions caching for faster builds #182
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |