mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Retry yarn/npm install steps on gh actions (#2533)
* retry yarn/npm install steps on gh actions Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * set timeout_minutes Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
ec9c47752f
commit
8b9f645a80
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@ -37,14 +37,24 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
|
|
||||||
- run: make node_modules
|
- uses: nick-invision/retry@v2
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
|
with:
|
||||||
|
timeout_minutes: 10
|
||||||
|
max_attempts: 3
|
||||||
|
retry_on: error
|
||||||
|
command: make node_modules
|
||||||
|
|
||||||
- run: make build-npm
|
- run: make build-npm
|
||||||
name: Generate npm package
|
name: Generate npm package
|
||||||
|
|
||||||
- run: make -j2 build-extensions
|
- uses: nick-invision/retry@v2
|
||||||
name: Build bundled extensions
|
name: Build bundled extensions
|
||||||
|
with:
|
||||||
|
timeout_minutes: 15
|
||||||
|
max_attempts: 3
|
||||||
|
retry_on: error
|
||||||
|
command: make -j2 build-extensions
|
||||||
|
|
||||||
- run: make test
|
- run: make test
|
||||||
name: Run tests
|
name: Run tests
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -18,7 +18,7 @@ binaries/client: node_modules
|
|||||||
yarn download-bins
|
yarn download-bins
|
||||||
|
|
||||||
node_modules: yarn.lock
|
node_modules: yarn.lock
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile --network-timeout=100000
|
||||||
yarn check --verify-tree --integrity
|
yarn check --verify-tree --integrity
|
||||||
|
|
||||||
static/build/LensDev.html: node_modules
|
static/build/LensDev.html: node_modules
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user