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 | |
| 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
| -rw-r--r-- | .github/workflows/lint.yml | 11 | ||||
| -rw-r--r-- | packages/backend/src/const.ts | 1 |
2 files changed, 11 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] diff --git a/packages/backend/src/const.ts b/packages/backend/src/const.ts index a238f4973a..4dc689238b 100644 --- a/packages/backend/src/const.ts +++ b/packages/backend/src/const.ts @@ -3,6 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ +// dummy export const MAX_NOTE_TEXT_LENGTH = 3000; export const USER_ONLINE_THRESHOLD = 1000 * 60 * 10; // 10min |