Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/actions/run-publish-vr-screenshot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ runs:
cache: 'yarn'
node-version: '20'

- run: yarn install --frozen-lockfile
- run: yarn install --immutable
shell: bash

- run: yarn playwright install --with-deps
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/bundle-size-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ env:

BROWSERSLIST_IGNORE_OLD_DATA: true

# Use project-local cache to avoid stale global Berry cache on CI
# where workspace packages may collide with published npm versions
YARN_ENABLE_GLOBAL_CACHE: false

jobs:
bundle-size-base:
if: ${{ github.repository_owner == 'microsoft' }}
Expand All @@ -31,7 +35,7 @@ jobs:
cache: 'yarn'
node-version: '22'

- run: yarn install --frozen-lockfile
- run: yarn install --immutable

- name: Build all packages & create reports (non-PR)
run: yarn nx run-many -t bundle-size --nxBail
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/bundle-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ env:

BROWSERSLIST_IGNORE_OLD_DATA: true

# Use project-local cache to avoid stale global Berry cache on CI
# where workspace packages may collide with published npm versions
YARN_ENABLE_GLOBAL_CACHE: false

jobs:
bundle-size:
if: ${{ github.repository_owner == 'microsoft' }}
runs-on: macos-14-xlarge
# if: ${{ github.repository_owner == 'microsoft' }}
# runs-on: macos-14-xlarge
runs-on: ubuntu-latest
permissions:
contents: 'read'
actions: 'read'
Expand All @@ -39,7 +44,7 @@ jobs:

- run: echo number of CPUs "$(getconf _NPROCESSORS_ONLN)"

- run: yarn install --frozen-lockfile
- run: yarn install --immutable

- name: Build packages & create reports
run: yarn nx affected -t bundle-size --nxBail
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/check-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ name: Check packages
on:
pull_request:

# Use project-local cache to avoid stale global Berry cache on CI
# where workspace packages may collide with published npm versions
env:
YARN_ENABLE_GLOBAL_CACHE: false

jobs:
dependency-deduplication:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'microsoft' }}
# if: ${{ github.repository_owner == 'microsoft' }}
steps:
- uses: actions/checkout@v6
with:
Expand All @@ -16,6 +21,8 @@ jobs:
node-version: '22'
cache: 'yarn'

- run: yarn install --immutable

- uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
id: changed-files-specific
with:
Expand All @@ -27,7 +34,7 @@ jobs:
run: |
echo "yarn.lock changed! Verifying package deduplication ..."

yarn run dedupe --list --fail
yarn run dedupe --check

if [[ $? -ne 0 ]]; then
echo "Your changes introduced package duplication 🚨"
Expand All @@ -38,7 +45,7 @@ jobs:

dependency-mismatches:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'microsoft' }}
# if: ${{ github.repository_owner == 'microsoft' }}
steps:
- uses: actions/checkout@v6
with:
Expand All @@ -65,7 +72,7 @@ jobs:

change-files:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'microsoft' }}
# if: ${{ github.repository_owner == 'microsoft' }}
steps:
- uses: actions/checkout@v6
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/check-tooling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ env:
__FORCE_API_MD_UPDATE__: true
__FORCE_SNAPSHOT_UPDATE__: true
NX_VERBOSE_LOGGING: true
YARN_ENABLE_IMMUTABLE_INSTALLS: false

jobs:
check-tools:
if: ${{ github.repository_owner == 'microsoft' }}
# if: ${{ github.repository_owner == 'microsoft' }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
Expand All @@ -28,7 +29,7 @@ jobs:
with:
node-version: '22'

- run: yarn install --frozen-lockfile
- run: yarn install --immutable

- run: yarn nx run scripts-executors:test -t 'smoke test'

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ name: 'Copilot Setup Steps'
# Allow testing of the setup steps from your repository's "Actions" tab.
on: workflow_dispatch

# Use project-local cache to avoid stale global Berry cache on CI
# where workspace packages may collide with published npm versions
env:
YARN_ENABLE_GLOBAL_CACHE: false

jobs:
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
copilot-setup-steps:
Expand All @@ -29,4 +34,4 @@ jobs:
cache: 'yarn'
node-version: '22'

- run: yarn install --frozen-lockfile
- run: yarn install --immutable
7 changes: 6 additions & 1 deletion .github/workflows/docsite-publish-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
- master
workflow_dispatch:

# Use project-local cache to avoid stale global Berry cache on CI
# where workspace packages may collide with published npm versions
env:
YARN_ENABLE_GLOBAL_CACHE: false

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -29,7 +34,7 @@ jobs:
cache: 'yarn'

- name: Install packages
run: yarn install --frozen-lockfile
run: yarn install --immutable

- name: Install Playwright Browsers
run: yarn playwright install --with-deps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-housekeeping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
label:
if: ${{ github.repository_owner == 'microsoft' }}
# if: ${{ github.repository_owner == 'microsoft' }}
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v6
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/pr-vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ env:
NX_PREFER_TS_NODE: true
NX_VERBOSE_LOGGING: true

# Use project-local cache to avoid stale global Berry cache on CI
# where workspace packages may collide with published npm versions
YARN_ENABLE_GLOBAL_CACHE: false

permissions:
contents: 'read'
actions: 'read'

jobs:
generate_vrt_screenshots:
if: ${{ github.repository_owner == 'microsoft' }}
runs-on: macos-14-xlarge
# if: ${{ github.repository_owner == 'microsoft' }}
# runs-on: macos-14-xlarge
runs-on: ubuntu-latest
name: Generate screenshots
timeout-minutes: 60
steps:
Expand All @@ -40,7 +45,7 @@ jobs:
cache: 'yarn'
node-version: '22'

- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn playwright install --with-deps

- name: Run VR tests (generate screenshots)
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-website-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ env:

BROWSERSLIST_IGNORE_OLD_DATA: true

# Use project-local cache to avoid stale global Berry cache on CI
# where workspace packages may collide with published npm versions
YARN_ENABLE_GLOBAL_CACHE: false

jobs:
bundle:
if: ${{ github.repository_owner == 'microsoft' }}
Expand Down Expand Up @@ -41,7 +45,7 @@ jobs:
- name: NodeJS heap default size
run: node -e 'console.log(v8.getHeapStatistics().heap_size_limit / 1024 / 1024 + " MB");'

- run: yarn install --frozen-lockfile
- run: yarn install --immutable

- name: Install Playwright Browsers
run: yarn playwright install --with-deps
Expand Down
28 changes: 20 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@ env:

BROWSERSLIST_IGNORE_OLD_DATA: true

# Use project-local cache to avoid stale global Berry cache on CI
# where workspace packages may collide with published npm versions
YARN_ENABLE_GLOBAL_CACHE: false

DEPLOY_HOST: fluentuipr.z22.web.core.windows.net
DEPLOY_URL: https://fluentuipr.z22.web.core.windows.net/${{ github.event.pull_request.number || github.ref_name }}
DEPLOY_BASE_PATH: ${{ github.event.pull_request.number != '' && format('pull/{0}', github.event.pull_request.number) || format('heads/{0}', github.ref_name) }}

jobs:
main:
if: ${{ github.repository_owner == 'microsoft' }}
runs-on: macos-14-xlarge
# if: ${{ github.repository_owner == 'microsoft' }}
# runs-on: macos-14-xlarge
runs-on: ubuntu-latest
permissions:
contents: 'read'
actions: 'read'
Expand All @@ -46,7 +51,10 @@ jobs:

- run: echo number of CPUs "$(getconf _NPROCESSORS_ONLN)"

- run: yarn install --frozen-lockfile
- run: yarn install --immutable

- name: 'Check duplicates in yarn.lock'
run: yarn run dedupe --check --json

- name: Workspace lint
run: |
Expand Down Expand Up @@ -82,8 +90,9 @@ jobs:
git diff-index --quiet HEAD -- || exit 1

react-major-versions-integration:
if: ${{ github.repository_owner == 'microsoft' }}
runs-on: macos-14-xlarge
# if: ${{ github.repository_owner == 'microsoft' }}
# runs-on: macos-14-xlarge
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
Expand All @@ -102,9 +111,12 @@ jobs:
- run: echo number of CPUs "$(getconf _NPROCESSORS_ONLN)"

- run: |
yarn install --frozen-lockfile
yarn install --immutable
- run: |
yarn rit --react 17 --install-deps
yarn rit --react 18 --install-deps
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false

- name: Verify Cypress installs from RIT temp workspaces (React 17 -> v13, React 18 -> v14)
run: |
Expand All @@ -130,7 +142,7 @@ jobs:
FLUENT_JEST_WORKER=2 yarn nx affected -t test-rit--17--type-check,test-rit--18--type-check,test-rit--17--test,test-rit--18--test --exclude='react-19-tests-v9'

e2e:
if: ${{ github.repository_owner == 'microsoft' }}
# if: ${{ github.repository_owner == 'microsoft' }}
# TODO: switch to macos once problematic tests are fixed
# https://github.com/microsoft/fluentui/issues/33173
# https://github.com/microsoft/fluentui/issues/33172
Expand All @@ -156,7 +168,7 @@ jobs:

- run: echo number of CPUs "$(getconf _NPROCESSORS_ONLN)"

- run: yarn install --frozen-lockfile
- run: yarn install --immutable

- name: Install Playwright dependencies
run: yarn playwright install --with-deps
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/vrt-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ env:
NX_PREFER_TS_NODE: true
NX_VERBOSE_LOGGING: true

# Use project-local cache to avoid stale global Berry cache on CI
# where workspace packages may collide with published npm versions
YARN_ENABLE_GLOBAL_CACHE: false

permissions:
contents: 'read'
actions: 'read'
Expand All @@ -30,7 +34,7 @@ jobs:
cache: 'yarn'
node-version: '22'

- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn playwright install --with-deps

- name: Run VR tests (generate screenshots)
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ $RECYCLE.BIN/
dist.stats.json
bower_components
node_modules

# Yarn (ignore everything except patches, plugins, and releases)
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases

temp
tmp
lib
Expand Down
Loading