-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 969 Bytes
/
ci.yaml
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
name: CI
on: [pull_request]
jobs:
build_lint_spelling:
name: Build, Lint, and Spellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
# Ensure that we fetch entire Git history to correctly show last updated author and time
# https://github.com/facebook/docusaurus/issues/2798#issuecomment-636602951
fetch-depth: 0
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm ci
- name: Build project
run: npm run build
- name: Static analysis
run: npm run lint
- name: Check spelling
run: npm run spell:check
pr_title:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
requireScope: false