Skip to content

Commit

Permalink
feat: build caching for CI (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubwiczkowski committed Jul 28, 2023
1 parent 3852ba6 commit 9675a34
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
yarn set version 3.6.1
- name: Run install
run: yarn install --immutable
- uses: dtinth/setup-github-actions-caching-for-turbo@v1
with:
cache-prefix: parliamentary_
- name: format
run: yarn format:check
- name: lint
Expand Down Expand Up @@ -48,12 +51,8 @@ jobs:
cd ../..
- name: Run install
run: yarn install --immutable
- name: Cache build
uses: actions/cache@v3
- uses: dtinth/setup-github-actions-caching-for-turbo@v1
with:
path: ${{ github.workspace }}/apps/web/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
cache-prefix: parliamentary_
- name: Build
run: yarn build

0 comments on commit 9675a34

Please sign in to comment.