Skip to content

Commit 9e349eb

Browse files
committed
feat(workflow): Fixes #2 - Ajout github actions pour workflow
1 parent 1c42d20 commit 9e349eb

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/lint.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919

2020
- name: Lint backend
2121
run: |
22-
if [ -d "backend" ]; then
23-
cd backend
22+
if [ -d "app/backend" ]; then
23+
cd app/backend
2424
npm install eslint prettier --save-dev
25-
echo "🔹 Lancement de ESLint..."
25+
echo "Lancement de ESLint..."
2626
npx eslint . --ext .js,.ts
27-
echo "🔹 Vérification avec Prettier..."
27+
echo "Vérification avec Prettier..."
2828
npx prettier --check .
2929
cd ..
3030
else
@@ -34,12 +34,12 @@ jobs:
3434
3535
- name: Lint frontend
3636
run: |
37-
if [ -d "frontend" ]; then
38-
cd frontend
37+
if [ -d "app/frontend" ]; then
38+
cd app/frontend
3939
npm install eslint prettier --save-dev
40-
echo "🔹 Lancement de ESLint..."
40+
echo "Lancement de ESLint..."
4141
npx eslint . --ext .js,.jsx
42-
echo "🔹 Vérification avec Prettier..."
42+
echo "Vérification avec Prettier..."
4343
npx prettier --check .
4444
cd ..
4545
else

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919

2020
- name: Installer et tester le backend
2121
run: |
22-
if [ -d "backend" ]; then
22+
if [ -d "app/backend" ]; then
2323
echo "Installation des dépendances backend..."
24-
cd backend
24+
cd app/backend
2525
npm install
2626
echo "Lancement des tests backend..."
2727
npm test
@@ -33,9 +33,9 @@ jobs:
3333
3434
- name: Installer et tester le frontend
3535
run: |
36-
if [ -d "frontend" ]; then
36+
if [ -d "app/frontend" ]; then
3737
echo "Installation des dépendances frontend..."
38-
cd frontend
38+
cd app/frontend
3939
npm install
4040
echo "Lancement des tests frontend..."
4141
npm test

0 commit comments

Comments
 (0)