Skip to content

Commit

Permalink
chore(ci): cache-keyの調整
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyme committed Aug 31, 2024
1 parent 4c4db1a commit 7d3de05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ jobs:
- name: Restore eslint cache
uses: actions/cache@v4
with:
path: node_modules/.cache/eslint
key: eslint-${{ env.eslint-cache-version }}-${{ hashFiles('/pnpm-lock.yaml') }}-${{ github.ref_name }}-${{ github.sha }}
path: ${{ github.workspace }}/node_modules/.cache/eslint-${{ matrix.workspace }}
key: eslint-${{ env.eslint-cache-version }}-${{ matrix.workspace }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
eslint-${{ env.eslint-cache-version }}-${{ hashFiles('/pnpm-lock.yaml') }}-
eslint-${{ env.eslint-cache-version }}-${{ matrix.workspace }}-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Run eslint
run: |
pnpm --filter ${{ matrix.workspace }} run eslint --cache --cache-location node_modules/.cache/eslint --cache-strategy content
pnpm --filter ${{ matrix.workspace }} run eslint --cache --cache-location node_modules/.cache/eslint-${{ matrix.workspace }} --cache-strategy content
typecheck:
name: Typecheck
Expand Down

0 comments on commit 7d3de05

Please sign in to comment.