Skip to content

Commit

Permalink
Use turbo actions caching for faster builds
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Nov 8, 2023
1 parent 1da5680 commit bd7fb6d
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,29 @@ on:
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: yarn lint

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: yarn build

- 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

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: yarn test
- name: Test
run: yarn test

0 comments on commit bd7fb6d

Please sign in to comment.