From 7bfe71a7da872500d2e211fae0906636c454e38f Mon Sep 17 00:00:00 2001 From: Julian Hille Date: Fri, 3 Dec 2021 13:04:48 +0100 Subject: [PATCH] Add retrying to install electron step --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37310f05..bb4cb902 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -187,7 +187,11 @@ jobs: npm_config_target: ${{ matrix.electron }} npm_config_disturl: https://atom.io/download/electron npm_config_runtime: electron - - run: npm install -g electron@${{ matrix.electron }} electron-mocha@${{ matrix.electron_mocha_version }} + - uses: Wandalen/wretry.action@v1.0.11 + with: + command: npm install -g electron@${{ matrix.electron }} electron-mocha@${{ matrix.electron_mocha_version }} + attempt_limit: 3 + attempt_delay: 10000 - name: Run test uses: GabrielBB/xvfb-action@v1 with: