Skip to content

Commit 95b4b2e

Browse files
committed
fix ci
1 parent dd0e78b commit 95b4b2e

File tree

1 file changed

+3
-41
lines changed

1 file changed

+3
-41
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,46 +7,9 @@ on:
77
pull_request:
88

99
jobs:
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
@@ -105,7 +67,7 @@ jobs:
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

0 commit comments

Comments
 (0)