Skip to content

Commit 9e53971

Browse files
authored
fix: added backend route in pipeline code
1 parent 75543d6 commit 9e53971

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches: [ main, master ]
88

9+
# Esto le dice a GitHub que entre a la carpeta email-api para ejecutar todo
10+
defaults:
11+
run:
12+
working-directory: email-api
13+
914
jobs:
1015
build-and-test:
1116
runs-on: ubuntu-latest
@@ -33,6 +38,8 @@ jobs:
3338
with:
3439
node-version: '20'
3540
cache: 'npm'
41+
# Aquí también ajustamos la ruta del lock file
42+
cache-dependency-path: email-api/package-lock.json
3643

3744
- name: Install dependencies
3845
run: npm install
@@ -44,4 +51,4 @@ jobs:
4451
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
4552
EMAIL: ${{ secrets.EMAIL }}
4653
NODE_ENV: test
47-
run: npm test
54+
run: npm test

0 commit comments

Comments
 (0)