-
Notifications
You must be signed in to change notification settings - Fork 423
52 lines (42 loc) · 1.05 KB
/
lint.yaml
File metadata and controls
52 lines (42 loc) · 1.05 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
name: Lint & Link Check
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
# Run weekly on Monday at 9 AM UTC
- cron: "0 9 * * 1"
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
- name: Setup Node
uses: actions/setup-node@v4.0.3
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm install --no-package-lock --legacy-peer-deps
- name: Run lint
run: npm run lint
link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
- name: Setup Node
uses: actions/setup-node@v4.0.3
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm install --no-package-lock --legacy-peer-deps
- name: Run Link Checker
run: npm run check-links -- --all --concurrency=2 --skip="celestia.org,nexus.hyperlane.xyz"