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 60da2e8 commit 3eeaa13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-22.04
env:
eslint-cache-version: v1
eslint-cache-path: ${{ github.workspace }}/node_modules/.cache/eslint
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -34,11 +35,10 @@ 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 }}
restore-keys: |
eslint-${{ env.eslint-cache-version }}-${{ hashFiles('/pnpm-lock.yaml') }}-
path: ${{ env.eslint-cache-path }}
key: eslint-${{ env.eslint-cache-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: eslint-${{ env.eslint-cache-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}-

- name: Run eslint
run: |
pnpm lint --cache --cache-location node_modules/.cache/eslint --cache-strategy content
pnpm lint --cache --cache-location ${{ env.eslint-cache-path }} --cache-strategy content

0 comments on commit 3eeaa13

Please sign in to comment.