forked from SumoLogic/sumologic-documentation
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.11 KB
/
Copy pathpr.yml
File metadata and controls
41 lines (39 loc) · 1.11 KB
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
name: Pull Request Checks
on:
pull_request:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-20.04
env:
CI: true
NODE_ENV: production
steps:
- uses: actions/checkout@v2.4.0
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '17.x'
cache: 'yarn'
- name: Docusaurus Webpack cache
uses: actions/cache@v3
with:
path: node_modules/.cache
key: ${{ runner.os }}-webpack-cache
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build the Docusaurus site
env:
NODE_OPTIONS: "--max-old-space-size=8192"
run: yarn build
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: codespell-project/actions-codespell@master
name: Check spelling
with:
skip: "*.svg,*.js,*.map,*.css,*.scss"
ignore_words_list: "aks,atleast,cros,fiel,ist,ot,pullrequest,ser,shttp"
path: docs