Skip to content

Commit

Permalink
๐Ÿ› ๏ธ๐Ÿ“‚: retry install.sh multiple times to compensate for cdn outages
Browse files Browse the repository at this point in the history
  • Loading branch information
linusha authored and merryman committed Aug 1, 2024
1 parent aba310a commit 2b7377b
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 14 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/daily-ci-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 8 additions & 3 deletions lively.project/templates/build-upload-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 8 additions & 3 deletions lively.project/templates/deploy-pages-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 8 additions & 3 deletions lively.project/templates/test-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b7377b

Please sign in to comment.