From da0a38bb6b2cf61f3dff235b8ab0f12975daa99d Mon Sep 17 00:00:00 2001 From: Eduardo Fernandes Date: Mon, 11 Nov 2024 19:44:05 -0300 Subject: [PATCH] Update run-int-e2e-tests.yml --- .github/workflows/run-int-e2e-tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-int-e2e-tests.yml b/.github/workflows/run-int-e2e-tests.yml index 966c6af..d4ec0b0 100644 --- a/.github/workflows/run-int-e2e-tests.yml +++ b/.github/workflows/run-int-e2e-tests.yml @@ -25,7 +25,7 @@ jobs: env: APP_PORT: 3000 NODE_ENV: test - JWT_SECRET: fake_secret + JWT_SECRET: ${{ secrets.JWT_SECRET }} JWT_EXPIRES_IN: 86400 DATABASE_URL: 'postgresql://postgres:docker@localhost:5432/projectdb?schema=public' @@ -39,6 +39,14 @@ jobs: node-version: 18 cache: 'npm' + - name: Cache node modules + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install Dependencies run: npm ci