From 1d216ac0c8339fd49133719052c600d84d5026bf Mon Sep 17 00:00:00 2001 From: sebastien Date: Mon, 18 Nov 2024 10:30:53 +0100 Subject: [PATCH] CI should retry Yarn install --- .github/workflows/argos.yml | 2 +- .github/workflows/build-blog-only.yml | 2 +- .github/workflows/build-hash-router.yml | 2 +- .github/workflows/build-perf.yml | 2 +- .github/workflows/canary-release.yml | 2 +- .github/workflows/continuous-releases.yml | 2 +- .github/workflows/lighthouse-report.yml | 2 +- .github/workflows/lint-autofix.yml | 2 +- .github/workflows/showcase-test.yml | 2 +- .github/workflows/tests-e2e.yml | 8 ++++---- .github/workflows/tests-swizzle.yml | 2 +- .github/workflows/tests-windows.yml | 2 +- .github/workflows/tests.yml | 2 +- 13 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/argos.yml b/.github/workflows/argos.yml index 4ad85e63b7c5..1fb67e608642 100644 --- a/.github/workflows/argos.yml +++ b/.github/workflows/argos.yml @@ -35,7 +35,7 @@ jobs: node-version: lts/* - name: Install dependencies - run: yarn || yarn + run: yarn || yarn || yarn - name: Install Playwright browsers run: npx playwright install --with-deps chromium diff --git a/.github/workflows/build-blog-only.yml b/.github/workflows/build-blog-only.yml index 172a31db52a7..552328794b2a 100644 --- a/.github/workflows/build-blog-only.yml +++ b/.github/workflows/build-blog-only.yml @@ -29,6 +29,6 @@ jobs: node-version: lts/* cache: yarn - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn - name: Build blog-only run: yarn workspace website build:blogOnly diff --git a/.github/workflows/build-hash-router.yml b/.github/workflows/build-hash-router.yml index cec32eef0c0d..d425e991b651 100644 --- a/.github/workflows/build-hash-router.yml +++ b/.github/workflows/build-hash-router.yml @@ -32,7 +32,7 @@ jobs: node-version: lts/* cache: yarn - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn - name: Build Hash Router run: yarn build:website:fast diff --git a/.github/workflows/build-perf.yml b/.github/workflows/build-perf.yml index 82df7621faca..ab20d1f8f5a3 100644 --- a/.github/workflows/build-perf.yml +++ b/.github/workflows/build-perf.yml @@ -80,7 +80,7 @@ jobs: node-version: lts/* cache: yarn - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn # Ensure build with a cold cache does not increase too much - name: Build (cold cache) diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 724a8f529e20..2461b9c5bc2c 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -41,7 +41,7 @@ jobs: env: NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn - name: Publish Canary release run: | yarn canary diff --git a/.github/workflows/continuous-releases.yml b/.github/workflows/continuous-releases.yml index 8ec120b96978..3efe4903b01f 100644 --- a/.github/workflows/continuous-releases.yml +++ b/.github/workflows/continuous-releases.yml @@ -27,7 +27,7 @@ jobs: cache: yarn - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn - name: Build packages run: yarn build:packages diff --git a/.github/workflows/lighthouse-report.yml b/.github/workflows/lighthouse-report.yml index 97bf69a9dd62..c267d3241bbb 100644 --- a/.github/workflows/lighthouse-report.yml +++ b/.github/workflows/lighthouse-report.yml @@ -29,7 +29,7 @@ jobs: node-version: lts/* - name: Install dependencies - run: yarn || yarn + run: yarn || yarn || yarn - name: Build website fast run: yarn build:website:fast diff --git a/.github/workflows/lint-autofix.yml b/.github/workflows/lint-autofix.yml index cfd54eda5d34..e80761689ba7 100644 --- a/.github/workflows/lint-autofix.yml +++ b/.github/workflows/lint-autofix.yml @@ -25,7 +25,7 @@ jobs: ref: ${{ github.head_ref }} - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn - name: AutoFix Format run: yarn format diff --git a/.github/workflows/showcase-test.yml b/.github/workflows/showcase-test.yml index 4237862dae3c..51aaa62586c0 100644 --- a/.github/workflows/showcase-test.yml +++ b/.github/workflows/showcase-test.yml @@ -29,6 +29,6 @@ jobs: node-version: lts/* cache: yarn - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn - name: Test run: yarn test website/src/data/__tests__/user.test.ts diff --git a/.github/workflows/tests-e2e.yml b/.github/workflows/tests-e2e.yml index e39a94f4e0a8..632ec27d91e7 100644 --- a/.github/workflows/tests-e2e.yml +++ b/.github/workflows/tests-e2e.yml @@ -48,11 +48,11 @@ jobs: node-version: ${{ matrix.node }} cache: yarn - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn - name: Generate test-website project against main branch run: yarn test:build:website -s - name: Install test-website project with Yarn v1 - run: yarn || yarn + run: yarn || yarn || yarn working-directory: ../test-website env: npm_config_registry: http://localhost:4873 @@ -158,7 +158,7 @@ jobs: node-version: lts/* cache: yarn - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn - name: Generate test-website project against main branch run: yarn test:build:website -s - name: Install test-website project with npm @@ -195,7 +195,7 @@ jobs: node-version: lts/* cache: yarn - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn - name: Generate test-website project against main branch run: yarn test:build:website -s - name: Install test-website project with pnpm diff --git a/.github/workflows/tests-swizzle.yml b/.github/workflows/tests-swizzle.yml index dad0e4c89ae2..468e0ba4358e 100644 --- a/.github/workflows/tests-swizzle.yml +++ b/.github/workflows/tests-swizzle.yml @@ -33,7 +33,7 @@ jobs: node-version: lts/* cache: yarn - name: Installation - run: yarn || yarn + run: yarn || yarn || yarn # Swizzle all the theme components - name: Swizzle (${{matrix.action}} - ${{matrix.variant}}) diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml index ccc9a524cd7c..4b1fbd8215be 100644 --- a/.github/workflows/tests-windows.yml +++ b/.github/workflows/tests-windows.yml @@ -38,7 +38,7 @@ jobs: with: node-version: ${{ matrix.node }} - name: Installation - run: yarn || yarn || yarn # 3 attempts to avoid timeout errors... + run: yarn || yarn || yarn - name: Docusaurus Jest Tests run: yarn test - name: Create a deep path diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 626a8d0be13d..41ad5ddc127a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,7 +37,7 @@ jobs: node-version: ${{ matrix.node }} cache: yarn - name: Installation - run: yarn || yarn || yarn # 3 attempts to avoid timeout errors... + run: yarn || yarn || yarn - name: Test run: yarn test - name: Remove Theme Internal Re-export