chore(ci): retry yarn install to ignore temporary network errors (#10691)

This commit is contained in:
Sébastien Lorber 2024-11-18 11:09:12 +01:00 committed by GitHub
parent a53ddf6ae9
commit e5bdb0b97d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 19 additions and 20 deletions

View file

@ -35,7 +35,7 @@ jobs:
node-version: lts/*
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn || yarn || yarn
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

View file

@ -29,6 +29,6 @@ jobs:
node-version: lts/*
cache: yarn
- name: Installation
run: yarn
run: yarn || yarn || yarn
- name: Build blog-only
run: yarn workspace website build:blogOnly

View file

@ -32,7 +32,7 @@ jobs:
node-version: lts/*
cache: yarn
- name: Installation
run: yarn
run: yarn || yarn || yarn
- name: Build Hash Router
run: yarn build:website:fast

View file

@ -80,7 +80,7 @@ jobs:
node-version: lts/*
cache: yarn
- name: Installation
run: yarn
run: yarn || yarn || yarn
# Ensure build with a cold cache does not increase too much
- name: Build (cold cache)

View file

@ -41,7 +41,7 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Installation
run: yarn
run: yarn || yarn || yarn
- name: Publish Canary release
run: |
yarn canary

View file

@ -27,7 +27,7 @@ jobs:
cache: yarn
- name: Installation
run: yarn
run: yarn || yarn || yarn
- name: Build packages
run: yarn build:packages

View file

@ -29,7 +29,7 @@ jobs:
node-version: lts/*
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn || yarn || yarn
- name: Build website fast
run: yarn build:website:fast

View file

@ -25,7 +25,7 @@ jobs:
ref: ${{ github.head_ref }}
- name: Installation
run: yarn
run: yarn || yarn || yarn
- name: AutoFix Format
run: yarn format

View file

@ -27,8 +27,7 @@ jobs:
node-version: lts/*
cache: yarn
- name: Installation
run: yarn
# run: yarn install --immutable # Fails if yarn.lock is modified (unfortunately only works for Yarn 2, and --frozen-lockfile is not the same!)
run: yarn install --frozen-lockfile || yarn install --frozen-lockfile || yarn install --frozen-lockfile
- name: Check immutable yarn.lock
run: git diff --exit-code

View file

@ -29,6 +29,6 @@ jobs:
node-version: lts/*
cache: yarn
- name: Installation
run: yarn
run: yarn || yarn || yarn
- name: Test
run: yarn test website/src/data/__tests__/user.test.ts

View file

@ -48,11 +48,11 @@ jobs:
node-version: ${{ matrix.node }}
cache: yarn
- name: Installation
run: 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 install
run: yarn || yarn || yarn
working-directory: ../test-website
env:
npm_config_registry: http://localhost:4873
@ -89,7 +89,7 @@ jobs:
node-version: lts/*
cache: yarn
- name: Installation
run: yarn
run: yarn || yarn || yarn
- name: Generate test-website project with ${{ matrix.variant }} against main branch
run: yarn test:build:website ${{ matrix.variant }}
- name: Install test-website project with Yarn Berry and nodeLinker = ${{ matrix.nodeLinker }}
@ -105,7 +105,7 @@ jobs:
# https://yarnpkg.com/features/pnp#fallback-mode
yarn config set pnpFallbackMode none
yarn install
yarn || yarn || yarn
working-directory: ../test-website
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # Yarn berry should create the lockfile, despite CI env
@ -158,7 +158,7 @@ jobs:
node-version: lts/*
cache: yarn
- name: Installation
run: 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
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

View file

@ -33,7 +33,7 @@ jobs:
node-version: lts/*
cache: yarn
- name: Installation
run: yarn
run: yarn || yarn || yarn
# Swizzle all the theme components
- name: Swizzle (${{matrix.action}} - ${{matrix.variant}})

View file

@ -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

View file

@ -37,7 +37,7 @@ jobs:
node-version: ${{ matrix.node }}
cache: yarn
- name: Installation
run: yarn
run: yarn || yarn || yarn
- name: Test
run: yarn test
- name: Remove Theme Internal Re-export