Wrap yarn install with a retry (#2685)
Summary: Often fails with things like "can't resolve github.com" ... I don't think there's a fix for that apart from trying again. Pull Request resolved: https://github.com/facebook/flipper/pull/2685 Test Plan: Waiting for things to turn green here. Reviewed By: timur-valiev Differential Revision: D30301456 Pulled By: passy fbshipit-source-id: 585758284e18bd02ab2a905b6f110a32099b861e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0de8a2eeb0
commit
4909296d86
15
.github/workflows/nodejs.yml
vendored
15
.github/workflows/nodejs.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Flipper Node CI
|
name: Desktop Node CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
@@ -17,9 +17,9 @@ jobs:
|
|||||||
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
|
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
@@ -32,9 +32,12 @@ jobs:
|
|||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
- name: yarn install
|
- name: yarn install (with retry)
|
||||||
run: yarn
|
uses: nick-invision/retry@v2.4.0
|
||||||
working-directory: ${{env.desktop-directory}}
|
with:
|
||||||
|
command: cd ${{env.desktop-directory}}; yarn
|
||||||
|
timeout_minutes: 30
|
||||||
|
max_attempts: 3
|
||||||
- name: lint
|
- name: lint
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
working-directory: ${{env.desktop-directory}}
|
working-directory: ${{env.desktop-directory}}
|
||||||
|
|||||||
Reference in New Issue
Block a user