Skip to content

Commit

Permalink
ci: Use setup-node action to cache dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jongwooo committed Nov 13, 2022
1 parent 8575729 commit 57c47bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: 'Cache node_modules'
uses: actions/cache@v3
with:
path: '~/.npm'
key: ${{ runner.os }}-node-v${{ matrix.node }}-integration-npm-210321-${{ hashFiles('**/package-lock.json') }} }}
restore-keys: |
${{ runner.os }}-node-v${{ matrix.node }}-integration-npm-210321-
cache: npm
- name: 'Cache terraform binaries'
uses: actions/cache@v3
with:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: 'Cache node_modules'
uses: actions/cache@v3
with:
path: '~/.npm'
key: ${{ runner.os }}-node-v${{ matrix.node }}-210321-${{ hashFiles('**/package-lock.json') }} }}
restore-keys: |
${{ runner.os }}-node-v${{ matrix.node }}-210321-
cache: npm
- run: npm ci
- name: Generating DB clients
run: |
Expand Down

0 comments on commit 57c47bd

Please sign in to comment.