Skip to content

Commit 692fa16

Browse files
authored
Fix working directory paths in sonarcloud.yml
Updated working directories for frontend and backend in SonarCloud workflow.
1 parent a0b6909 commit 692fa16

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
analyze:
1111
runs-on: ubuntu-latest
12+
1213
steps:
1314
- name: Checkout
1415
uses: actions/checkout@v4
@@ -20,23 +21,25 @@ jobs:
2021
with:
2122
node-version: 20
2223

23-
# FRONTEND (adjust path if needed)
24+
# ---- FRONT END (React in front_end/)
2425
- name: Install FE deps
25-
working-directory: frontend
26+
working-directory: front_end
2627
run: npm ci
2728

2829
- name: FE tests (coverage)
29-
working-directory: frontend
30-
run: npm test -- --coverage --watchAll=false || echo "no FE tests"
30+
working-directory: front_end
31+
run: |
32+
npm test -- --coverage --watchAll=false || echo "no FE tests"
3133
32-
# BACKEND (adjust path if needed)
34+
# ---- BACK END (Node/Express in back_end/)
3335
- name: Install BE deps
34-
working-directory: backend
36+
working-directory: back_end
3537
run: npm ci
3638

3739
- name: BE tests (coverage)
38-
working-directory: backend
39-
run: npm test -- --coverage --watchAll=false || echo "no BE tests"
40+
working-directory: back_end
41+
run: |
42+
npm test -- --coverage --watchAll=false || echo "no BE tests"
4043
4144
- name: SonarCloud scan
4245
uses: SonarSource/sonarcloud-github-action@v2

0 commit comments

Comments
 (0)