From 7f2c92fa79c67702b7331fd4b2d0dbf068e2eb5d Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 9 Dec 2020 11:03:59 +0800 Subject: [PATCH] ci: fix timeout during yarn installing --- .github/workflows/bench.yaml | 2 +- .github/workflows/lint.yaml | 2 +- .github/workflows/linux-aarch64.yaml | 2 +- .github/workflows/linux-armv7.yaml | 2 +- .github/workflows/test.yaml | 2 +- .github/workflows/windows-i686.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index bcd88146..89f584a5 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -54,7 +54,7 @@ jobs: key: bench-${{ hashFiles('yarn.lock') }} - name: 'Install dependencies' - run: yarn install --frozen-lockfile --registry https://registry.npmjs.org + run: yarn install --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - name: 'Build ts' run: yarn build diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b24954f7..3cd5b3a8 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -52,7 +52,7 @@ jobs: key: lint-${{ hashFiles('yarn.lock') }} - name: 'Install dependencies' - run: yarn install --frozen-lockfile --registry https://registry.npmjs.org + run: yarn install --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - name: 'Lint JS/TS' run: yarn lint diff --git a/.github/workflows/linux-aarch64.yaml b/.github/workflows/linux-aarch64.yaml index d23bf725..3f3147ee 100644 --- a/.github/workflows/linux-aarch64.yaml +++ b/.github/workflows/linux-aarch64.yaml @@ -63,7 +63,7 @@ jobs: run: sudo apt-get install gcc-aarch64-linux-gnu g++-6-aarch64-linux-gnu -y - name: Install dependencies - run: yarn install --frozen-lockfile --registry https://registry.npmjs.org + run: yarn install --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/linux-armv7.yaml b/.github/workflows/linux-armv7.yaml index 5a833139..d018af35 100644 --- a/.github/workflows/linux-armv7.yaml +++ b/.github/workflows/linux-armv7.yaml @@ -63,7 +63,7 @@ jobs: run: sudo apt-get install gcc-arm-linux-gnueabihf -y - name: Install dependencies - run: yarn install --frozen-lockfile --registry https://registry.npmjs.org + run: yarn install --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 961fae71..81c4301a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -60,7 +60,7 @@ jobs: key: npm-cache-${{ matrix.os }}-node@${{ matrix.node }}-${{ hashFiles('yarn.lock') }} - name: 'Install dependencies' - run: yarn install --frozen-lockfile --registry https://registry.npmjs.org + run: yarn install --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - name: 'Build TypeScript' run: yarn build diff --git a/.github/workflows/windows-i686.yml b/.github/workflows/windows-i686.yml index ff8097b5..fab90f8e 100644 --- a/.github/workflows/windows-i686.yml +++ b/.github/workflows/windows-i686.yml @@ -32,7 +32,7 @@ jobs: key: npm-cache-windows-i686-node@lts-${{ hashFiles('yarn.lock') }} - name: 'Install dependencies' - run: yarn install --frozen-lockfile --registry https://registry.npmjs.org + run: yarn install --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000 - name: 'Build TypeScript' run: yarn build