From 8969e1efb21d6addb45551e3045c9c1708b0887a Mon Sep 17 00:00:00 2001 From: eps1lon Date: Thu, 26 Sep 2024 23:28:59 +0200 Subject: [PATCH] Disable React 18 tests on PRs New CI budget is approved and the hydration tests are flaky. There's no active work on Pages router so this is safe-ish to ignore to unblock work on App router. --- .github/workflows/build_and_test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index fa4019ab1d848..b684d78e0599a 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -201,6 +201,9 @@ jobs: strategy: fail-fast: false matrix: + exclude: + # Excluding React 18 tests unless on `canary` branch until budget is approved. + - react: ${{ github.event_name == 'pull_request' && '18.3.1' }} group: [1/5, 2/5, 3/5, 4/5, 5/5] # Empty value uses default react: ['', '18.3.1'] @@ -218,6 +221,9 @@ jobs: strategy: fail-fast: false matrix: + exclude: + # Excluding React 18 tests unless on `canary` branch until budget is approved. + - react: ${{ github.event_name == 'pull_request' && '18.3.1' }} group: [1/5, 2/5, 3/5, 4/5, 5/5] # Empty value uses default react: [''] @@ -236,6 +242,9 @@ jobs: strategy: fail-fast: false matrix: + exclude: + # Excluding React 18 tests unless on `canary` branch until budget is approved. + - react: ${{ github.event_name == 'pull_request' && '18.3.1' }} group: [1/5, 2/5, 3/5, 4/5, 5/5] # Empty value uses default # TODO: Run with React 18. @@ -371,6 +380,9 @@ jobs: strategy: fail-fast: false matrix: + exclude: + # Excluding React 18 tests unless on `canary` branch until budget is approved. + - react: ${{ github.event_name == 'pull_request' && '18.3.1' }} group: [1/4, 2/4, 3/4, 4/4] # Empty value uses default react: ['', '18.3.1'] @@ -388,6 +400,9 @@ jobs: strategy: fail-fast: false matrix: + exclude: + # Excluding React 18 tests unless on `canary` branch until budget is approved. + - react: ${{ github.event_name == 'pull_request' && '18.3.1' }} group: [1/5, 2/5, 3/5, 4/5, 5/5] # Empty value uses default react: ['', '18.3.1']