-
-
Notifications
You must be signed in to change notification settings - Fork 23
33 lines (30 loc) · 837 Bytes
/
ci.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
name: Docs CI
on:
push:
branches: [main, docs/ui]
pull_request:
branches: [main, docs/ui]
merge_group:
branches: [main, docs/ui]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 19
cache: 'npm'
- run: npm ci
- run: npm run lint --if-present
- run: npm run build --if-present
env:
NODE_OPTIONS: '--max_old_space_size=4096'
# disabled because the output of textlint marks warnings as errors
# # re-run lint:text with junit output for github annotations
# - run: npm run lint:text -- --format junit --output-file lint-report.xml
# - uses: mikepenz/action-junit-report@v3
# if: always()
# with:
# report_paths: 'lint-report.xml'