Skip to content

Commit

Permalink
Try splitting out yarn install
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Oct 3, 2024
1 parent f25242b commit d07e4b4
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,58 @@ name: CI
on: [push]

jobs:
build-and-test:
yarn-install:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Cache root and workspace node_modules
uses: actions/cache@v3
with:
# Cache the root node_modules and each workspace node_modules
path: |
node_modules
packages/*/node_modules
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-
${{ runner.os }}-node-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: yarn install --frozen-lockfile

build-and-test:
runs-on: ubuntu-latest
needs: yarn-install

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Cache root and workspace node_modules
uses: actions/cache@v3
with:
path: |
node_modules
packages/*/node_modules
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-
${{ runner.os }}-node-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# - name: Install Dependencies
# run: yarn install --frozen-lockfile
- name: Build
run: |
yarn workspace ani-cursor build
Expand Down

0 comments on commit d07e4b4

Please sign in to comment.