Skip to content

Commit 98aa6dd

Browse files
committed
Refactor API validation messages and Discord notifications for clarity
1 parent 4677b21 commit 98aa6dd

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -71,41 +71,41 @@ jobs:
7171
SERVER_PID=$!
7272
sleep 8
7373
74-
echo "🚀 Running comprehensive API validation..."
74+
echo "Running comprehensive API validation..."
7575
7676
# Test health endpoint
77-
echo "Testing health endpoint..."
77+
echo "Testing health endpoint..."
7878
curl -f -s http://localhost:3000/health | jq '.'
7979
8080
# Test root endpoint
81-
echo "Testing root endpoint..."
81+
echo "Testing root endpoint..."
8282
curl -f -s http://localhost:3000/ | jq '.'
8383
8484
# Test get all users
85-
echo "Testing GET /api/users..."
85+
echo "Testing GET /api/users..."
8686
curl -f -s http://localhost:3000/api/users | jq '.'
8787
8888
# Test create user
89-
echo "Testing POST /api/users..."
89+
echo "Testing POST /api/users..."
9090
NEW_USER=$(curl -f -s -X POST http://localhost:3000/api/users \
9191
-H "Content-Type: application/json" \
9292
-d '{"name":"CI Test User","email":"ci-test@example.com"}')
9393
echo "$NEW_USER" | jq '.'
9494
USER_ID=$(echo "$NEW_USER" | jq -r '.id')
9595
9696
# Test get specific user
97-
echo "Testing GET /api/users/$USER_ID..."
97+
echo "Testing GET /api/users/$USER_ID..."
9898
curl -f -s http://localhost:3000/api/users/$USER_ID | jq '.'
9999
100100
# Test delete user
101-
echo "Testing DELETE /api/users/$USER_ID..."
101+
echo "Testing DELETE /api/users/$USER_ID..."
102102
curl -f -s -X DELETE http://localhost:3000/api/users/$USER_ID | jq '.'
103103
104104
# Test 404 handling
105-
echo "Testing 404 handling..."
105+
echo "Testing 404 handling..."
106106
curl -s http://localhost:3000/nonexistent | jq '.'
107107
108-
echo "🎉 All API endpoints validated successfully!"
108+
echo "All API endpoints validated successfully!"
109109
110110
# Clean up
111111
kill $SERVER_PID
@@ -117,7 +117,7 @@ jobs:
117117
-X POST \
118118
-d '{
119119
"embeds": [{
120-
"title": "Backend Tests Passed",
120+
"title": "Backend Tests Passed",
121121
"description": "Backend tests for Node.js ${{ matrix.node-version }} completed successfully",
122122
"color": 3066993,
123123
"fields": [
@@ -167,7 +167,7 @@ jobs:
167167
-X POST \
168168
-d '{
169169
"embeds": [{
170-
"title": "Backend Tests Failed",
170+
"title": "Backend Tests Failed",
171171
"description": "Backend tests for Node.js ${{ matrix.node-version }} failed",
172172
"color": 15158332,
173173
"fields": [
@@ -258,21 +258,21 @@ jobs:
258258
SERVER_PID=$!
259259
sleep 5
260260
261-
echo "🚀 Running frontend validation..."
261+
echo "Running frontend validation..."
262262
263263
# Test if HTML loads
264-
echo "Testing HTML page load..."
264+
echo "Testing HTML page load..."
265265
curl -f -s http://localhost:8080/index.html | head -20
266266
267267
# Test if CSS loads
268-
echo "Testing CSS file..."
268+
echo "Testing CSS file..."
269269
curl -f -s http://localhost:8080/styles.css | head -10
270270
271271
# Test if JavaScript loads
272-
echo "Testing JavaScript file..."
272+
echo "Testing JavaScript file..."
273273
curl -f -s http://localhost:8080/app.js | head -10
274274
275-
echo "🎉 Frontend files validated successfully!"
275+
echo "Frontend files validated successfully!"
276276
277277
# Clean up
278278
kill $SERVER_PID
@@ -284,7 +284,7 @@ jobs:
284284
-X POST \
285285
-d '{
286286
"embeds": [{
287-
"title": "Frontend Tests Passed",
287+
"title": "Frontend Tests Passed",
288288
"description": "Frontend tests for Node.js ${{ matrix.node-version }} completed successfully",
289289
"color": 3066993,
290290
"fields": [
@@ -334,7 +334,7 @@ jobs:
334334
-X POST \
335335
-d '{
336336
"embeds": [{
337-
"title": "Frontend Tests Failed",
337+
"title": "Frontend Tests Failed",
338338
"description": "Frontend tests for Node.js ${{ matrix.node-version }} failed",
339339
"color": 15158332,
340340
"fields": [
@@ -396,12 +396,12 @@ jobs:
396396
if [[ "$BACKEND_STATUS" == "success" && "$FRONTEND_STATUS" == "success" ]]; then
397397
OVERALL_STATUS="success"
398398
COLOR=3066993
399-
TITLE="🎉 Deployment Complete - All Tests Passed"
399+
TITLE="Deployment Complete - All Tests Passed"
400400
DESCRIPTION="All jobs completed successfully across all Node.js versions"
401401
else
402402
OVERALL_STATUS="failure"
403403
COLOR=15158332
404-
TITLE="Deployment Issues Detected"
404+
TITLE="Deployment Issues Detected"
405405
DESCRIPTION="Some jobs failed. Please check the individual job results."
406406
fi
407407

0 commit comments

Comments
 (0)