-
-
Notifications
You must be signed in to change notification settings - Fork 657
62 lines (52 loc) · 1.38 KB
/
Copy pathlint.yml
File metadata and controls
62 lines (52 loc) · 1.38 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
name: Lint Check
on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
linting:
runs-on: ubuntu-latest
name: Linting
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Markdown lint
uses: DavidAnson/markdownlint-cli2-action@v23
with:
config: .github/.markdownlint-cli2.jsonc
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Agent hook tests
run: node scripts/agent-format-hook.test.mjs
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install frontend dependencies
run: |
cd frontend
npm ci --ignore-scripts
- name: Install backend lint dependencies
run: |
cd backend
pip install -r requirements-lint.txt
- name: Run Linters
run: |
cd frontend
npm run lint:check
npm run format:check
cd ..
cd backend
pre-commit run --config ../.pre-commit-config.yaml --all-files || exit 1
cd ..
cd frontend/src-tauri
cargo fmt -- --check