-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (43 loc) · 1.27 KB
/
ci.yaml
File metadata and controls
53 lines (43 loc) · 1.27 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
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches: [main]
merge_group:
pull_request:
branches: [main]
# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true
env:
NODE_OPTIONS: "--max_old_space_size=4096"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: ".nvmrc"
cache: npm
- name: Run rumdl
uses: rvben/rumdl@3af73dca6bf9cf509a1cb24620e75c942385eb98 # v0.1.76
with:
version: 0.1.35
path: "."
fail-on-error: true
- name: Install dependencies
run: npm ci
- name: Run Check
run: npm run check
- name: Run linter
# npm run lint includes lint:markdown which is already handled bby the rumdl
# step above
run: npm run lint:src
- name: Run linkcheck
run: npm run linkcheck