Fix GitHub Workflows Configuration Issues (#451)

This commit is contained in:
tanzhenxin
2025-08-26 16:54:52 +08:00
committed by GitHub
parent 98fd0f6a89
commit 1baf5d795f
6 changed files with 55 additions and 26 deletions

View File

@@ -95,10 +95,19 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: 'package-lock.json'
registry-url: 'https://registry.npmjs.org/'
- name: 'Configure npm for rate limiting'
run: |-
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000
npm config set fetch-retries 5
npm config set fetch-timeout 300000
- name: 'Install dependencies'
run: |-
npm ci
npm ci --prefer-offline --no-audit --progress=false
- name: 'Run formatter check'
run: |-
@@ -273,15 +282,24 @@ jobs:
with:
node-version: '${{ matrix.node-version }}'
cache: 'npm'
cache-dependency-path: 'package-lock.json'
registry-url: 'https://registry.npmjs.org/'
- name: 'Configure npm for rate limiting'
run: |-
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000
npm config set fetch-retries 5
npm config set fetch-timeout 300000
- name: 'Install dependencies'
run: |-
npm ci --prefer-offline --no-audit --progress=false
- name: 'Build project'
run: |-
npm run build
- name: 'Install dependencies for testing'
run: |-
npm ci
- name: 'Run tests and generate reports'
env:
NO_COLOR: true