From 2b7377bd8c26fc657b5e4dc8621896341e5bf32a Mon Sep 17 00:00:00 2001 From: Linus Hagemann Date: Tue, 30 Jul 2024 13:09:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=F0=9F=93=82:=20retry=20`i?= =?UTF-8?q?nstall.sh`=20multiple=20times=20to=20compensate=20for=20cdn=20o?= =?UTF-8?q?utages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check-pr.yml | 11 ++++++++--- .github/workflows/daily-ci-checks.yml | 10 ++++++++-- lively.project/templates/build-upload-action.js | 11 ++++++++--- lively.project/templates/deploy-pages-action.js | 11 ++++++++--- lively.project/templates/test-action.js | 11 ++++++++--- 5 files changed, 40 insertions(+), 14 deletions(-) diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index 819f937387..629ad2a653 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -32,10 +32,15 @@ jobs: lively.next-node_modules/ .puppeteer-browser-cache/ key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('lively*/package.json') }} + - name: Prepare to install `lively.next` + run: chmod a+x ./install.sh - name: Install `lively.next` - run: | - chmod a+x ./install.sh - ./install.sh + uses: nick-fields/retry@v3 + with: + timeout_minutes: 15 + max_attempts: 5 + retry_on: error + command: ./install.sh - name: Cache `lively.next` dependencies if: ${{ steps.cache-lively-deps.outputs.cache-hit != 'true' }} uses: actions/cache/save@v3 diff --git a/.github/workflows/daily-ci-checks.yml b/.github/workflows/daily-ci-checks.yml index cdb27f9e38..b736eb2a9d 100644 --- a/.github/workflows/daily-ci-checks.yml +++ b/.github/workflows/daily-ci-checks.yml @@ -29,10 +29,16 @@ jobs: lively.next-node_modules/ .puppeteer-browser-cache/ key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('lively*/package.json') }} - - name: Install `lively.next` + - name: Prepare to install `lively.next` run: | chmod a+x ./install.sh - ./install.sh + - name: Install `lively.next` + uses: nick-fields/retry@v3 + with: + timeout_minutes: 15 + max_attempts: 5 + retry_on: error + command: ./install.sh - name: Cache `lively.next` dependencies if: ${{ steps.cache-lively-deps.outputs.cache-hit != 'true' }} uses: actions/cache/save@v3 diff --git a/lively.project/templates/build-upload-action.js b/lively.project/templates/build-upload-action.js index a437322327..f4f4ded023 100644 --- a/lively.project/templates/build-upload-action.js +++ b/lively.project/templates/build-upload-action.js @@ -30,11 +30,16 @@ jobs: with: repository: LivelyKernel/lively.next ref: %LIVELY_VERSION% + - name: Prepare to install \`lively.next\` + run: chmod a+x ./install.sh - name: Install \`lively.next\` if: \${{ steps.cache-lively.outputs.cache-hit != 'true' }} - run: | - chmod a+x ./install.sh - ./install.sh --freezer-only + uses: nick-fields/retry@v3 + with: + timeout_minutes: 15 + max_attempts: 5 + retry_on: error + command: ./install.sh --freezer-only - name: Save \`lively\` installation in cache if: \${{ steps.cache-lively.outputs.cache-hit != 'true' }} uses: actions/cache/save@v3 diff --git a/lively.project/templates/deploy-pages-action.js b/lively.project/templates/deploy-pages-action.js index df2fa3a977..9630886dc1 100644 --- a/lively.project/templates/deploy-pages-action.js +++ b/lively.project/templates/deploy-pages-action.js @@ -34,11 +34,16 @@ jobs: with: repository: LivelyKernel/lively.next ref: %LIVELY_VERSION% + - name: Prepare to install \`lively.next\` + run: chmod a+x ./install.sh - name: Install \`lively.next\` if: \${{ steps.cache-lively.outputs.cache-hit != 'true' }} - run: | - chmod a+x ./install.sh - ./install.sh --freezer-only + uses: nick-fields/retry@v3 + with: + timeout_minutes: 15 + max_attempts: 5 + retry_on: error + command: ./install.sh --freezer-only - name: Save \`lively\` repo in cache if: \${{ steps.cache-lively.outputs.cache-hit != 'true' }} uses: actions/cache/save@v3 diff --git a/lively.project/templates/test-action.js b/lively.project/templates/test-action.js index b8978c2fbc..4bb57ad28b 100644 --- a/lively.project/templates/test-action.js +++ b/lively.project/templates/test-action.js @@ -30,11 +30,16 @@ jobs: with: repository: LivelyKernel/lively.next ref: %LIVELY_VERSION% + - name: Prepare to install \`lively.next\` + run: chmod a+x ./install.sh - name: Install \`lively.next\` if: \${{ steps.cache-lively-with-build.outputs.cache-hit != 'true' }} - run: | - chmod a+x ./install.sh - ./install.sh + uses: nick-fields/retry@v3 + with: + timeout_minutes: 15 + max_attempts: 5 + retry_on: error + command: ./install.sh - name: Save \`lively\` installation in cache if: \${{ steps.cache-lively-with-build.outputs.cache-hit != 'true' }} uses: actions/cache/save@v3