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 0c454bc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@ jobs:
runs-on: ubuntu-22.04
needs:
- run_pnpm_install
env:
eslint-cache-version: v1
strategy:
matrix:
workspace:
- backend
- frontend
- sw
- misskey-js
env:
eslint-cache-version: v1
eslint-cache-path: ${{ github.workspace }}/node_modules/.cache/eslint-${{ matrix.workspace }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -84,14 +85,13 @@ 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 }}-${{ matrix.workspace }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: 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 ${{ env.eslint-cache-path }} --cache-strategy content
typecheck:
name: Typecheck
Expand Down

0 comments on commit 0c454bc

Please sign in to comment.