Skip to content

Commit

Permalink
chore: add cache restoration and remove build step since turbo test a…
Browse files Browse the repository at this point in the history
…lready depends on build
  • Loading branch information
Alex Casillas committed Feb 7, 2025
1 parent e311e88 commit 8b18843
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,20 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Load cached dependencies
uses: actions/[email protected]
id: cache
with:
path: |
**/node_modules
**/.turbo
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
id: install-dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install

- name: Try to build the packages
id: build-packages
run: npm run build:pm

- name: Run unit tests
id: run-unit-tests
run: npm run test:unit
Expand Down

0 comments on commit 8b18843

Please sign in to comment.