Skip to content

Commit a197ebc

Browse files
committed
run 16 and 18
1 parent 35ad3de commit a197ebc

1 file changed

Lines changed: 3 additions & 43 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
node-version: [18]
22+
node-version: [16,18]
2323

2424
steps:
2525
- name: Checkout code
@@ -57,7 +57,7 @@ jobs:
5757

5858
strategy:
5959
matrix:
60-
node-version: [ 18]
60+
node-version: [16, 18]
6161

6262
steps:
6363
- name: Checkout code
@@ -80,46 +80,6 @@ jobs:
8080
cd week5/frontend
8181
npm test
8282
83-
integration-tests:
84-
name: Integration Tests
85-
runs-on: ubuntu-latest
86-
needs: [backend-tests, frontend-tests]
87-
88-
steps:
89-
- name: Checkout code
90-
uses: actions/checkout@v4
91-
92-
- name: Set up Node.js
93-
uses: actions/setup-node@v4
94-
with:
95-
node-version: '18'
96-
cache: 'npm'
97-
98-
- name: Install all dependencies
99-
run: |
100-
cd week5/backend && npm ci
101-
cd ../frontend && npm ci
102-
103-
- name: Start backend server
104-
run: |
105-
cd week5/backend
106-
npm start &
107-
sleep 5
108-
109-
- name: Verify API endpoints
110-
run: |
111-
# Test all API endpoints
112-
curl -f http://localhost:3000/
113-
curl -f http://localhost:3000/health
114-
curl -f http://localhost:3000/api/users
115-
116-
# Test creating a user
117-
curl -f -X POST http://localhost:3000/api/users \
118-
-H "Content-Type: application/json" \
119-
-d '{"name":"Test User","email":"test@example.com"}'
120-
121-
# Test getting the created user
122-
curl -f http://localhost:3000/api/users/4
123-
83+
12484

12585

0 commit comments

Comments
 (0)