summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/lint.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 1f13f4fa2f..222a14d28d 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -40,8 +40,6 @@ jobs:
needs: [pnpm_install]
runs-on: ubuntu-latest
continue-on-error: true
- env:
- eslint-cache-version: v1
strategy:
matrix:
workspace:
@@ -49,6 +47,9 @@ jobs:
- frontend
- sw
- misskey-js
+ env:
+ eslint-cache-version: v1
+ eslint-cache-path: ${{ github.workspace }}/node_modules/.cache/eslint-${{ matrix.workspace }}
steps:
- uses: actions/checkout@v4.1.1
with:
@@ -64,11 +65,10 @@ jobs:
- name: Restore eslint cache
uses: actions/cache@v4.0.2
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') }}-
- - run: pnpm --filter ${{ matrix.workspace }} run eslint --cache --cache-location node_modules/.cache/eslint --cache-strategy content
+ 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') }}-
+ - run: pnpm --filter ${{ matrix.workspace }} run eslint --cache --cache-location ${{ env.eslint-cache-path }} --cache-strategy content
typecheck:
needs: [pnpm_install]