-
-
Notifications
You must be signed in to change notification settings - Fork 104
45 lines (37 loc) · 1.18 KB
/
cspell-cli.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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: Enable Corepack
run: corepack enable
- 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.1.2
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" "**"