From 8b9f645a809c72692dad2be22441bcad17d7170c Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Thu, 15 Apr 2021 15:22:55 +0300 Subject: [PATCH] Retry yarn/npm install steps on gh actions (#2533) * retry yarn/npm install steps on gh actions Signed-off-by: Jari Kolehmainen * set timeout_minutes Signed-off-by: Jari Kolehmainen --- .github/workflows/test.yml | 14 ++++++++++++-- Makefile | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 29373e017d..69440e27c6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,14 +37,24 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - - run: make node_modules + - uses: nick-invision/retry@v2 name: Install dependencies + with: + timeout_minutes: 10 + max_attempts: 3 + retry_on: error + command: make node_modules - run: make build-npm name: Generate npm package - - run: make -j2 build-extensions + - uses: nick-invision/retry@v2 name: Build bundled extensions + with: + timeout_minutes: 15 + max_attempts: 3 + retry_on: error + command: make -j2 build-extensions - run: make test name: Run tests diff --git a/Makefile b/Makefile index 658be09690..b5a652a51b 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ binaries/client: node_modules yarn download-bins node_modules: yarn.lock - yarn install --frozen-lockfile + yarn install --frozen-lockfile --network-timeout=100000 yarn check --verify-tree --integrity static/build/LensDev.html: node_modules