mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 18:58:36 +02:00
chore(ci): retry yarn install
to ignore temporary network errors (#10691)
This commit is contained in:
parent
a53ddf6ae9
commit
e5bdb0b97d
14 changed files with 19 additions and 20 deletions
2
.github/workflows/argos.yml
vendored
2
.github/workflows/argos.yml
vendored
|
@ -35,7 +35,7 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn || yarn || yarn
|
||||||
|
|
||||||
- name: Install Playwright browsers
|
- name: Install Playwright browsers
|
||||||
run: npx playwright install --with-deps chromium
|
run: npx playwright install --with-deps chromium
|
||||||
|
|
2
.github/workflows/build-blog-only.yml
vendored
2
.github/workflows/build-blog-only.yml
vendored
|
@ -29,6 +29,6 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
- name: Build blog-only
|
- name: Build blog-only
|
||||||
run: yarn workspace website build:blogOnly
|
run: yarn workspace website build:blogOnly
|
||||||
|
|
2
.github/workflows/build-hash-router.yml
vendored
2
.github/workflows/build-hash-router.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
|
|
||||||
- name: Build Hash Router
|
- name: Build Hash Router
|
||||||
run: yarn build:website:fast
|
run: yarn build:website:fast
|
||||||
|
|
2
.github/workflows/build-perf.yml
vendored
2
.github/workflows/build-perf.yml
vendored
|
@ -80,7 +80,7 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
|
|
||||||
# Ensure build with a cold cache does not increase too much
|
# Ensure build with a cold cache does not increase too much
|
||||||
- name: Build (cold cache)
|
- name: Build (cold cache)
|
||||||
|
|
2
.github/workflows/canary-release.yml
vendored
2
.github/workflows/canary-release.yml
vendored
|
@ -41,7 +41,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
- name: Publish Canary release
|
- name: Publish Canary release
|
||||||
run: |
|
run: |
|
||||||
yarn canary
|
yarn canary
|
||||||
|
|
2
.github/workflows/continuous-releases.yml
vendored
2
.github/workflows/continuous-releases.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
||||||
cache: yarn
|
cache: yarn
|
||||||
|
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: yarn build:packages
|
run: yarn build:packages
|
||||||
|
|
2
.github/workflows/lighthouse-report.yml
vendored
2
.github/workflows/lighthouse-report.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn || yarn || yarn
|
||||||
|
|
||||||
- name: Build website fast
|
- name: Build website fast
|
||||||
run: yarn build:website:fast
|
run: yarn build:website:fast
|
||||||
|
|
2
.github/workflows/lint-autofix.yml
vendored
2
.github/workflows/lint-autofix.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
|
|
||||||
- name: AutoFix Format
|
- name: AutoFix Format
|
||||||
run: yarn format
|
run: yarn format
|
||||||
|
|
3
.github/workflows/lint.yml
vendored
3
.github/workflows/lint.yml
vendored
|
@ -27,8 +27,7 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn install --frozen-lockfile || yarn install --frozen-lockfile || yarn install --frozen-lockfile
|
||||||
# run: yarn install --immutable # Fails if yarn.lock is modified (unfortunately only works for Yarn 2, and --frozen-lockfile is not the same!)
|
|
||||||
- name: Check immutable yarn.lock
|
- name: Check immutable yarn.lock
|
||||||
run: git diff --exit-code
|
run: git diff --exit-code
|
||||||
|
|
||||||
|
|
2
.github/workflows/showcase-test.yml
vendored
2
.github/workflows/showcase-test.yml
vendored
|
@ -29,6 +29,6 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
- name: Test
|
- name: Test
|
||||||
run: yarn test website/src/data/__tests__/user.test.ts
|
run: yarn test website/src/data/__tests__/user.test.ts
|
||||||
|
|
12
.github/workflows/tests-e2e.yml
vendored
12
.github/workflows/tests-e2e.yml
vendored
|
@ -48,11 +48,11 @@ jobs:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
- name: Generate test-website project against main branch
|
- name: Generate test-website project against main branch
|
||||||
run: yarn test:build:website -s
|
run: yarn test:build:website -s
|
||||||
- name: Install test-website project with Yarn v1
|
- name: Install test-website project with Yarn v1
|
||||||
run: yarn install
|
run: yarn || yarn || yarn
|
||||||
working-directory: ../test-website
|
working-directory: ../test-website
|
||||||
env:
|
env:
|
||||||
npm_config_registry: http://localhost:4873
|
npm_config_registry: http://localhost:4873
|
||||||
|
@ -89,7 +89,7 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
- name: Generate test-website project with ${{ matrix.variant }} against main branch
|
- name: Generate test-website project with ${{ matrix.variant }} against main branch
|
||||||
run: yarn test:build:website ${{ matrix.variant }}
|
run: yarn test:build:website ${{ matrix.variant }}
|
||||||
- name: Install test-website project with Yarn Berry and nodeLinker = ${{ matrix.nodeLinker }}
|
- name: Install test-website project with Yarn Berry and nodeLinker = ${{ matrix.nodeLinker }}
|
||||||
|
@ -105,7 +105,7 @@ jobs:
|
||||||
# https://yarnpkg.com/features/pnp#fallback-mode
|
# https://yarnpkg.com/features/pnp#fallback-mode
|
||||||
yarn config set pnpFallbackMode none
|
yarn config set pnpFallbackMode none
|
||||||
|
|
||||||
yarn install
|
yarn || yarn || yarn
|
||||||
working-directory: ../test-website
|
working-directory: ../test-website
|
||||||
env:
|
env:
|
||||||
YARN_ENABLE_IMMUTABLE_INSTALLS: false # Yarn berry should create the lockfile, despite CI env
|
YARN_ENABLE_IMMUTABLE_INSTALLS: false # Yarn berry should create the lockfile, despite CI env
|
||||||
|
@ -158,7 +158,7 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
- name: Generate test-website project against main branch
|
- name: Generate test-website project against main branch
|
||||||
run: yarn test:build:website -s
|
run: yarn test:build:website -s
|
||||||
- name: Install test-website project with npm
|
- name: Install test-website project with npm
|
||||||
|
@ -195,7 +195,7 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
- name: Generate test-website project against main branch
|
- name: Generate test-website project against main branch
|
||||||
run: yarn test:build:website -s
|
run: yarn test:build:website -s
|
||||||
- name: Install test-website project with pnpm
|
- name: Install test-website project with pnpm
|
||||||
|
|
2
.github/workflows/tests-swizzle.yml
vendored
2
.github/workflows/tests-swizzle.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
|
|
||||||
# Swizzle all the theme components
|
# Swizzle all the theme components
|
||||||
- name: Swizzle (${{matrix.action}} - ${{matrix.variant}})
|
- name: Swizzle (${{matrix.action}} - ${{matrix.variant}})
|
||||||
|
|
2
.github/workflows/tests-windows.yml
vendored
2
.github/workflows/tests-windows.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn || yarn || yarn # 3 attempts to avoid timeout errors...
|
run: yarn || yarn || yarn
|
||||||
- name: Docusaurus Jest Tests
|
- name: Docusaurus Jest Tests
|
||||||
run: yarn test
|
run: yarn test
|
||||||
- name: Create a deep path
|
- name: Create a deep path
|
||||||
|
|
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -37,7 +37,7 @@ jobs:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: yarn
|
run: yarn || yarn || yarn
|
||||||
- name: Test
|
- name: Test
|
||||||
run: yarn test
|
run: yarn test
|
||||||
- name: Remove Theme Internal Re-export
|
- name: Remove Theme Internal Re-export
|
||||||
|
|
Loading…
Add table
Reference in a new issue