forked from invertase/react-native-firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.41 KB
/
docs.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
46
47
48
49
50
51
52
53
54
name: Documentation
on:
workflow_dispatch:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
spelling:
name: 'Spelling & Grammar'
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
with:
all_but_latest: true
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v2
with:
node-version: 16
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
name: Yarn Cache
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-v1
- name: Yarn Install
uses: nick-invision/retry@v2
with:
timeout_minutes: 3
retry_wait_seconds: 30
max_attempts: 3
command: yarn --no-audit --prefer-offline
- name: Lint
run: yarn lint:markdown
- name: Install Dependencies
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: sudo npm install --global spellchecker-cli
- name: Spell check
run: |
yarn lint:spellcheck