From c9e963d610b9396245d07cdf05b2a51fadba23f4 Mon Sep 17 00:00:00 2001 From: shimisnow <14943507+shimisnow@users.noreply.github.com> Date: Thu, 31 Oct 2024 11:18:37 -0300 Subject: [PATCH] ci[#130]: rollback on npm ci config --- .github/workflows/lint-test-e2e.yml | 49 ++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint-test-e2e.yml b/.github/workflows/lint-test-e2e.yml index 54b39a5..b7c85f5 100644 --- a/.github/workflows/lint-test-e2e.yml +++ b/.github/workflows/lint-test-e2e.yml @@ -31,7 +31,7 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - name: Install dependencies - run: npm install + run: npm ci --no-audit shared-code: needs: setup @@ -53,7 +53,7 @@ jobs: fail-on-cache-miss: true - name: Install dependencies - run: npm ci + run: npm ci --no-audit - name: Lint run: npx nx lint shared @@ -103,7 +103,7 @@ jobs: fail-on-cache-miss: true - name: Install dependencies - run: npm ci + run: npm ci --no-audit - name: Lint run: npx nx lint auth-service @@ -156,7 +156,7 @@ jobs: fail-on-cache-miss: true - name: Install dependencies - run: npm ci + run: npm ci --no-audit - name: Lint run: npx nx lint financial-service @@ -209,7 +209,7 @@ jobs: fail-on-cache-miss: true - name: Install dependencies - run: npm ci + run: npm ci --no-audit - name: Lint run: npx nx lint user-service @@ -348,15 +348,22 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} - - name: Install Nx - run: npm add --global nx@20.0.6 + - name: Restore npm cache + uses: actions/cache/restore@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + fail-on-cache-miss: true + + - name: Install dependencies + run: npm install --only=dev --no-audit - name: Load .env variables id: dotenv uses: falti/dotenv-action@v1.1.4 - name: Testing - run: nx e2e auth-service-e2e + run: npx nx e2e auth-service-e2e env: AUTH_SERVICE_PORT: ${{ steps.dotenv.outputs.AUTH_SERVICE_PORT }} DATABASE_AUTH_HOST: ${{ steps.dotenv.outputs.DATABASE_AUTH_HOST }} @@ -379,15 +386,22 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} - - name: Install Nx - run: npm add --global nx@20.0.6 + - name: Restore npm cache + uses: actions/cache/restore@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + fail-on-cache-miss: true + + - name: Install dependencies + run: npm install --only=dev --no-audit - name: Load .env variables id: dotenv uses: falti/dotenv-action@v1.1.4 - name: Testing - run: nx e2e financial-service-e2e + run: npx nx e2e financial-service-e2e env: FINANCIAL_SERVICE_PORT: ${{ steps.dotenv.outputs.FINANCIAL_SERVICE_PORT }} DATABASE_FINANCIAL_HOST: ${{ steps.dotenv.outputs.DATABASE_FINANCIAL_HOST }} @@ -410,15 +424,22 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} - - name: Install Nx - run: npm add --global nx@20.0.6 + - name: Restore npm cache + uses: actions/cache/restore@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + fail-on-cache-miss: true + + - name: Install dependencies + run: npm install --only=dev --no-audit - name: Load .env variables id: dotenv uses: falti/dotenv-action@v1.1.4 - name: Testing - run: nx e2e user-service-e2e + run: npx nx e2e user-service-e2e env: USER_SERVICE_PORT: ${{ steps.dotenv.outputs.USER_SERVICE_PORT }} DATABASE_USER_HOST: ${{ steps.dotenv.outputs.DATABASE_USER_HOST }}