Skip to content

Commit

Permalink
ci[#130]: rollback on npm ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
shimisnow committed Oct 31, 2024
1 parent 44a3998 commit c9e963d
Showing 1 changed file with 35 additions and 14 deletions.
49 changes: 35 additions & 14 deletions .github/workflows/lint-test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit c9e963d

Please sign in to comment.