Repository navigation
84 lines (80 loc) · 3.12 KB
/
Copy pathvalidate.yml
File metadata and controls
84 lines (80 loc) · 3.12 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Validate catalog
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
integrity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Validate catalog and generated documentation
run: |
python tests/catalog_integrity.py
python tests/problem_solutions.py
node scripts/generate-problems.mjs --check
node scripts/sync-leetcode-index.mjs --check
node scripts/generate-readme.mjs --check
- name: Check JavaScript syntax
run: |
node --check site.js
node --check activity-selection/app.js
node --check octree/app.js
node --check scripts/core-batch-app.js
node --check scripts/scaffold-core-batch.mjs
node --check scripts/foundation-batch-app.js
node --check scripts/scaffold-foundation-batch.mjs
node --check scripts/learning-guide.mjs
node --check scripts/enrich-learning-metadata.mjs
node --check scripts/scaffold-neural-network-batch.mjs
node --check scripts/neural-network-batch-app.js
node --check scripts/problem-batch-a.mjs
node --check scripts/problem-batch-b.mjs
node --check scripts/problem-batch-c.mjs
node --check scripts/problem-batch-d.mjs
node --check scripts/problem-batch-e.mjs
node --check scripts/problem-batch-e-strings.mjs
node --check scripts/problem-batch-e-numbers.mjs
node --check scripts/problem-batch-e-compression.mjs
node --check scripts/problem-batch-e-geometry.mjs
node --check scripts/problem-batch-f.mjs
node --check scripts/problem-batch-f-graph.mjs
node --check scripts/problem-batch-f-backtrack.mjs
node --check scripts/problem-batch-f-dp.mjs
node --check scripts/problem-batch-f-structures.mjs
node --check scripts/problem-batch-f-spatial.mjs
node --check scripts/problem-batch-f-ml.mjs
node --check scripts/generate-problems.mjs
node --check scripts/generate-readme.mjs
node --check scripts/sync-leetcode-index.mjs
node --check problems/app.js
node --check problems/leetcode-index.js
node --check problems/python-worker.js
node --check guides/app.js
node --check neural-network-tools/app.js
node --check roadmap/app.js
node --check learn/app.js
node --check learn/explain-data.js
node --check visualization/app.js
browser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install browser test dependencies
run: |
python -m pip install -r requirements-test.txt
python -m playwright install --with-deps chromium
- name: Run browser smoke tests
run: python tests/browser_smoke.py