-
Notifications
You must be signed in to change notification settings - Fork 61
68 lines (56 loc) · 1.94 KB
/
checks.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: 'Run Checks: Lint, Audit and Build'
on:
pull_request:
branches:
- main
jobs:
build:
name: Run Checks
runs-on: ubuntu-latest
steps:
# Check out the repository
- name: Cached LFS checkout
uses: nschloe/action-cached-lfs-checkout@d481127c3821f9c278a6019c39a108ac7004c133
- name: Set up node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm install
# Run Prettier
- name: Run Prettier
run: npm run format:check
# Run ESLint
- name: Run eslint
run: npm run lint
- name: Audit dependencies
run: npm audit
# Audit will fail until update-notifier is updated by Docusaurus
continue-on-error: true
- name: Check types
run: npm run typecheck
- name: Check for circular dependencies
run: npx madge --circular . --extensions ts,js,jsx,tsx
- name: Build with npm
run: npm run build
# Checking to ensure markdown link is not broken
markdown-link-check-md:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368
with:
file-extension: '.md'
use-quiet-mode: 'yes'
config-file: '.github/workflows/markdown.links.config.json'
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368
with:
file-extension: '.mdx'
use-quiet-mode: 'yes'
config-file: '.github/workflows/markdown.links.config.json'