File tree Expand file tree Collapse file tree 1 file changed +3
-41
lines changed
Expand file tree Collapse file tree 1 file changed +3
-41
lines changed Original file line number Diff line number Diff line change 77 pull_request :
88
99jobs :
10- lint :
11- runs-on : ubuntu-latest
12- steps :
13- - name : Checkout code
14- uses : actions/checkout@v4
15-
16- - name : Set up Python
17- uses : actions/setup-python@v5
18- with :
19- python-version : ' 3.11'
20-
21- - name : Set up Node.js
22- uses : actions/setup-node@v4
23- with :
24- node-version : ' 20'
25- cache : ' npm'
26- cache-dependency-path : ' frontend/package-lock.json'
27-
28- - name : Install backend dependencies
29- run : pip install -r ns-python-react-exercise/backend/requirements.txt
30-
31- - name : Install frontend dependencies
32- run : |
33- cd ns-python-react-exercise/frontend
34- npm ci
35-
36- - name : Run backend linters
37- run : |
38- cd ns-python-react-exercise/backend
39- flake8 .
40- black --check .
41-
42- - name : Run frontend linter
43- run : |
44- cd ns-python-react-exercise/frontend
45- npm run lint
4610
4711 backend_tests :
4812 runs-on : ubuntu-latest
49- needs : lint
5013 services :
5114 db :
5215 image : postgres:18.1
@@ -84,18 +47,17 @@ jobs:
8447
8548 frontend_e2e_tests :
8649 runs-on : ubuntu-latest
87- needs : lint
8850 steps :
8951 - name : Checkout code
9052 uses : actions/checkout@v4
9153
9254 - name : Set up Node.js
9355 uses : actions/setup-node@v4
9456 with :
95- node-version : ' 20 '
57+ node-version : ' 24 '
9658 cache : ' npm'
9759 cache-dependency-path : ' frontend/package-lock.json'
98-
60+
9961 - name : Install frontend dependencies
10062 run : |
10163 cd ns-python-react-exercise/frontend
10567 run : |
10668 cd ns-python-react-exercise/frontend
10769 npx playwright install --with-deps
108-
70+
10971 - name : Build and start services
11072 run : |
11173 cd ns-python-react-exercise
You can’t perform that action at this time.
0 commit comments