Skip to content

Commit

Permalink
added cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Apr 30, 2024
1 parent 4174bd9 commit f5f7130
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,21 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn install --frozen-lockfile
- name: Cache node modules
id: cache-npm
uses: actions/[email protected]
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
- name: Install deps in root
run: yarn install --frozen-lockfile
- run: yarn generate:papi:e2e
- run: yarn install --frozen-lockfile
- name: Install deps in client
run: yarn install --frozen-lockfile
working-directory: client
- run: yarn typecheck
- run: yarn format
Expand Down

0 comments on commit f5f7130

Please sign in to comment.