Skip to content

Commit

Permalink
chore: install npm in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Dec 20, 2023
1 parent 682542e commit 0e50b94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/deploy-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ jobs:
with:
path: 'server/node_modules'
key: server-npm-${{ hashFiles('server/package-lock.json') }}
- run: npm install
if: steps.root-npm-cache.outputs.cache-hit != 'true'
- run: npm install --prefix client
if: steps.client-npm-cache.outputs.cache-hit != 'true'
- run: npm install --prefix server
if: steps.server-npm-cache.outputs.cache-hit != 'true'
- run: npm install & npm install --prefix client & npm install --prefix server & wait
if: steps.root-npm-cache.outputs.cache-hit != 'true' || steps.client-npm-cache.outputs.cache-hit != 'true' || steps.server-npm-cache.outputs.cache-hit != 'true'
- run: npm run build --prefix client
env:
API_BASE_PATH: ${{ vars.API_BASE_PATH }}
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ jobs:
with:
path: 'server/node_modules'
key: server-npm-${{ hashFiles('server/package-lock.json') }}
- run: npm install
if: steps.root-npm-cache.outputs.cache-hit != 'true'
- run: npm install --prefix client
if: steps.client-npm-cache.outputs.cache-hit != 'true'
- run: npm install --prefix server
if: steps.server-npm-cache.outputs.cache-hit != 'true'
- run: npm install & npm install --prefix client & npm install --prefix server & wait
if: steps.root-npm-cache.outputs.cache-hit != 'true' || steps.client-npm-cache.outputs.cache-hit != 'true' || steps.server-npm-cache.outputs.cache-hit != 'true'
- run: npm run generate
- run: npm run lint
- run: npm run typecheck
Expand Down

0 comments on commit 0e50b94

Please sign in to comment.