Skip to content

Commit

Permalink
ci(code-check): update cache config
Browse files Browse the repository at this point in the history
  • Loading branch information
akinoccc committed May 2, 2024
1 parent 2a40759 commit 18eda1b
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ jobs:
cache: pnpm

- name: Cache dependencies
id: node_modules_cache_id
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
path: node_modules
key: node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Install dependencies
run: pnpm install
Expand All @@ -52,10 +53,10 @@ jobs:
cache: pnpm

- name: Restore cached dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
path: node_modules
key: node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Lint Check
run: pnpm lint
Expand All @@ -75,8 +76,8 @@ jobs:
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
path: node_modules
key: node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Setup Node
uses: actions/setup-node@v4
Expand Down Expand Up @@ -105,10 +106,10 @@ jobs:
cache: pnpm

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
path: node_modules
key: node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Unit Test
run: pnpm test
Expand All @@ -132,10 +133,10 @@ jobs:
cache: pnpm

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
path: node_modules
key: node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Build
run: pnpm build

0 comments on commit 18eda1b

Please sign in to comment.