File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - main
5+ pull_request :
6+ branches :
7+ - main
8+
9+ jobs :
10+ backend-lint :
11+ name : Backend Lint
12+ runs-on : ubuntu-latest
13+ defaults :
14+ run :
15+ working-directory : ./backend
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Set up poetry
20+ run : pipx install poetry==2.1.2
21+
22+ - name : Set up Python
23+ uses : actions/setup-python@v5
24+ with :
25+ python-version : ' 3.12'
26+ cache : ' poetry'
27+ cache-dependency-path : ./backend/poetry.lock
28+
29+ - name : Install dependencies
30+ run : poetry install --only=main,dev
31+
32+ - name : Run linting
33+ run : poetry run pre-commit run --all-files
34+
35+ frontend-lint :
36+ name : Frontend Lint
37+ runs-on : ubuntu-latest
38+ defaults :
39+ run :
40+ working-directory : ./frontend
41+ steps :
42+ - uses : actions/checkout@v4
43+
44+ - uses : actions/setup-node@v4
45+ with :
46+ node-version : ' 20.14'
47+ cache : ' npm'
48+ cache-dependency-path : ' ./frontend/package-lock.json'
49+
50+ - name : Install dependencies
51+ run : npm ci
52+
53+ - name : Run linting
54+ run : npm run lint
You can’t perform that action at this time.
0 commit comments