2121 - name : Setup Node.js
2222 uses : actions/setup-node@v4
2323 with :
24- node-version : " 20 .x"
24+ node-version : " 22 .x"
2525 cache : " npm"
2626
2727 - name : Run Prettier Checks
3939 - name : Setup Node.js
4040 uses : actions/setup-node@v4
4141 with :
42- node-version : " 20 .x"
42+ node-version : " 22 .x"
4343 cache : " npm"
4444
4545 - name : Install dependencies
7979 - name : Setup Node.js
8080 uses : actions/setup-node@v4
8181 with :
82- node-version : " 20 .x"
82+ node-version : " 22 .x"
8383 cache : " npm"
8484
8585 - name : Install dependencies
@@ -119,7 +119,7 @@ jobs:
119119 - name : Setup Node.js
120120 uses : actions/setup-node@v4
121121 with :
122- node-version : " 20 .x"
122+ node-version : " 22 .x"
123123 cache : " npm"
124124
125125 - name : Install dependencies
@@ -159,7 +159,7 @@ jobs:
159159 - name : Setup Node.js
160160 uses : actions/setup-node@v4
161161 with :
162- node-version : " 20 .x"
162+ node-version : " 22 .x"
163163 cache : " npm"
164164
165165 - name : Install dependencies
@@ -199,7 +199,7 @@ jobs:
199199 - name : Setup Node.js
200200 uses : actions/setup-node@v4
201201 with :
202- node-version : " 20 .x"
202+ node-version : " 22 .x"
203203 cache : " npm"
204204
205205 - name : Install dependencies
@@ -239,7 +239,7 @@ jobs:
239239 - name : Setup Node.js
240240 uses : actions/setup-node@v4
241241 with :
242- node-version : " 20 .x"
242+ node-version : " 22 .x"
243243 cache : " npm"
244244
245245 - name : Install dependencies
@@ -279,7 +279,7 @@ jobs:
279279 - name : Setup Node.js
280280 uses : actions/setup-node@v4
281281 with :
282- node-version : " 20 .x"
282+ node-version : " 22 .x"
283283 cache : " npm"
284284
285285 - name : Install dependencies
@@ -319,7 +319,7 @@ jobs:
319319 - name : Setup Node.js
320320 uses : actions/setup-node@v4
321321 with :
322- node-version : " 20 .x"
322+ node-version : " 22 .x"
323323 cache : " npm"
324324
325325 - name : Install dependencies
@@ -346,3 +346,210 @@ jobs:
346346
347347 npx eslint --format json . > eslint-report.json
348348 cat eslint-report.json | reviewdog -f=eslint -name="eslint" -reporter=github-pr-review -level=error
349+
350+ user-backend-lint :
351+ runs-on : ubuntu-latest
352+ steps :
353+ - name : Set REVIEWDOG_GITHUB_API_TOKEN
354+ run : echo "REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
355+
356+ - name : Checkout Repository
357+ uses : actions/checkout@v3
358+
359+ - name : Setup Node.js
360+ uses : actions/setup-node@v4
361+ with :
362+ node-version : " 22.x"
363+ cache : " npm"
364+
365+ - name : Install dependencies
366+ run : |
367+ cd ./backend-services/user-backend-service
368+ npm ci
369+
370+ - name : Install reviewdog
371+ uses : reviewdog/action-setup@v1
372+ with :
373+ reviewdog_version : latest
374+
375+ - name : Run ESLint and Reviewdog
376+ run : |
377+ cd ./backend-services/user-backend-service
378+ exit_code=0
379+ npx eslint . || exit_code=$?
380+ eslint_exit_code=$exit_code
381+
382+ if [ $eslint_exit_code -ne 0 ]; then
383+ echo "ESLint failed for user-backend"
384+ exit 1
385+ fi
386+
387+ npx eslint --format json . > eslint-report.json
388+ cat eslint-report.json | reviewdog -f=eslint -name="eslint" -reporter=github-pr-review -level=error
389+
390+ collab-backend-lint :
391+ runs-on : ubuntu-latest
392+ steps :
393+ - name : Set REVIEWDOG_GITHUB_API_TOKEN
394+ run : echo "REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
395+
396+ - name : Checkout Repository
397+ uses : actions/checkout@v3
398+
399+ - name : Setup Node.js
400+ uses : actions/setup-node@v4
401+ with :
402+ node-version : " 22.x"
403+ cache : " npm"
404+
405+ - name : Install dependencies
406+ run : |
407+ cd ./backend-services/collab-backend-service
408+ npm ci
409+
410+ - name : Install reviewdog
411+ uses : reviewdog/action-setup@v1
412+ with :
413+ reviewdog_version : latest
414+
415+ - name : Run ESLint and Reviewdog
416+ run : |
417+ cd ./backend-services/collab-backend-service
418+ exit_code=0
419+ npx eslint . || exit_code=$?
420+ eslint_exit_code=$exit_code
421+
422+ if [ $eslint_exit_code -ne 0 ]; then
423+ echo "ESLint failed for collab-backend"
424+ exit 1
425+ fi
426+
427+ npx eslint --format json . > eslint-report.json
428+ cat eslint-report.json | reviewdog -f=eslint -name="eslint" -reporter=github-pr-review -level=error
429+
430+ chatting-backend-lint :
431+ runs-on : ubuntu-latest
432+ steps :
433+ - name : Set REVIEWDOG_GITHUB_API_TOKEN
434+ run : echo "REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
435+
436+ - name : Checkout Repository
437+ uses : actions/checkout@v3
438+
439+ - name : Setup Node.js
440+ uses : actions/setup-node@v4
441+ with :
442+ node-version : " 22.x"
443+ cache : " npm"
444+
445+ - name : Install dependencies
446+ run : |
447+ cd ./backend-services/chatting-backend-service
448+ npm ci
449+
450+ - name : Install reviewdog
451+ uses : reviewdog/action-setup@v1
452+ with :
453+ reviewdog_version : latest
454+
455+ - name : Run ESLint and Reviewdog
456+ run : |
457+ cd ./backend-services/chatting-backend-service
458+ exit_code=0
459+ npx eslint . || exit_code=$?
460+ eslint_exit_code=$exit_code
461+
462+ if [ $eslint_exit_code -ne 0 ]; then
463+ echo "ESLint failed for chatting-backend"
464+ exit 1
465+ fi
466+
467+ npx eslint --format json . > eslint-report.json
468+ cat eslint-report.json | reviewdog -f=eslint -name="eslint" -reporter=github-pr-review -level=error
469+
470+ history-backend-lint :
471+ runs-on : ubuntu-latest
472+ steps :
473+ - name : Set REVIEWDOG_GITHUB_API_TOKEN
474+ run : echo "REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
475+
476+ - name : Checkout Repository
477+ uses : actions/checkout@v3
478+
479+ - name : Setup Node.js
480+ uses : actions/setup-node@v4
481+ with :
482+ node-version : " 22.x"
483+ cache : " npm"
484+
485+ - name : Install dependencies
486+ run : |
487+ cd ./backend-services/history-backend-service
488+ npm ci
489+
490+ - name : Install reviewdog
491+ uses : reviewdog/action-setup@v1
492+ with :
493+ reviewdog_version : latest
494+
495+ - name : Run ESLint and Reviewdog
496+ run : |
497+ cd ./backend-services/history-backend-service
498+ exit_code=0
499+ npx eslint . || exit_code=$?
500+ eslint_exit_code=$exit_code
501+
502+ if [ $eslint_exit_code -ne 0 ]; then
503+ echo "ESLint failed for history-backend"
504+ exit 1
505+ fi
506+
507+ npx eslint --format json . > eslint-report.json
508+ cat eslint-report.json | reviewdog -f=eslint -name="eslint" -reporter=github-pr-review -level=error
509+
510+ matching-backend-lint :
511+ runs-on : ubuntu-latest
512+ steps :
513+ - name : Set REVIEWDOG_GITHUB_API_TOKEN
514+ run : echo "REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
515+
516+ - name : Checkout Repository
517+ uses : actions/checkout@v3
518+
519+ - name : Setup JDK 17
520+ uses : actions/setup-java@v5
521+ with :
522+ java-version : " 17"
523+ distribution : " temurin"
524+ cache : " maven"
525+ cache-dependency-path : |
526+ backend-services/matching-backend-service/pom.xml
527+
528+ - name : Spotless check
529+ run : |
530+ cd ./backend-services/matching-backend-service
531+ mvn -B -DskipTests spotless:check
532+
533+ - name : Generate Checkstyle report
534+ run : |
535+ cd ./backend-services/matching-backend-service
536+ mvn -B -DskipTests checkstyle:checkstyle || exit_code=$?
537+
538+ - name : Install reviewdog
539+ uses : reviewdog/action-setup@v1
540+ with :
541+ reviewdog_version : latest
542+
543+ - name : Run Checkstyle and Reviewdog
544+ run : |
545+ cd ./backend-services/matching-backend-service
546+ REPORT=target/checkstyle-result.xml
547+ if [ ! -f "$REPORT" ]; then
548+ echo "Checkstyle report not found at $REPORT"
549+ exit 1
550+ fi
551+ cat "$REPORT" | reviewdog -f=checkstyle -name="checkstyle" -reporter=github-pr-review -level=error
552+ - name : Enforce Checkstyle (fail on violations)
553+ run : |
554+ cd ./backend-services/matching-backend-service
555+ mvn -B -DskipTests checkstyle:check
0 commit comments