dev: Experiment with smaller cache sizes. #11625
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cSpell-cli | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
# Run on demand | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
cspell: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4.0.0 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
- run: pnpm -v | |
- # It is necessary to run `pnpm i` in order install some dictionaries. | |
name: prepare-cspell-action | |
run: pnpm i | |
- run: pnpm --filter @cspell/cspell-types --filter @cspell/cspell-bundled-dicts run build | |
- name: Restore CSpell cache | |
uses: actions/cache@v4 | |
with: | |
key: cspell-cache-v2-${{ runner.os }}-${{ hashFiles('**/*.ts', '**/*.md') }} | |
path: | | |
.cspellcache | |
restore-keys: | | |
cspell-cache-v2-${{ runner.os }}- | |
- name: cspell@latest | |
run: npx cspell@latest --cache --cache-strategy=content --cache-location=.cspellcache --exclude="yarn2" --no-progress "**" | |
# run: npx cspell@latest --cache --cache-strategy=content --cache-location=.cspellcache --exclude="yarn2" "**" |