diff options
| author | Kisaragi <48310258+KisaragiEffective@users.noreply.github.com> | 2024-07-14 21:30:57 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-14 21:30:57 +0900 |
| commit | f0b9d70720b27977051563713e02abf38eb2b45a (patch) | |
| tree | c071e2c1e46acd6ca594b7200732d31447341c22 /.github/workflows | |
| parent | chore(deps): bump actions/setup-node from 4.0.2 to 4.0.3 (#14165) (diff) | |
| download | misskey-f0b9d70720b27977051563713e02abf38eb2b45a.tar.gz misskey-f0b9d70720b27977051563713e02abf38eb2b45a.tar.bz2 misskey-f0b9d70720b27977051563713e02abf38eb2b45a.zip | |
ci: cache eslint (#14204)
* ci: cache eslint
* dummy commit to trigger
* fix syntax error
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/lint.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1c5cab208c..c21fc95123 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,6 +40,8 @@ jobs: needs: [pnpm_install] runs-on: ubuntu-latest continue-on-error: true + env: + eslint-cache-version: v1 strategy: matrix: workspace: @@ -59,7 +61,14 @@ jobs: cache: 'pnpm' - run: corepack enable - run: pnpm i --frozen-lockfile - - run: pnpm --filter ${{ matrix.workspace }} run eslint + - 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 typecheck: needs: [pnpm_install] |