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:
Jari Kolehmainen authored and GitHub committed 2021-04-15 15:22:55 +03:00
1 parent ec9c47752f
commit 8b9f645a80
2 files changed
+13 -3

No files matched your search

+12 -2
View File
@@ -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