Skip to content

Commit

Permalink
support running React 18 tests on PRs with a label
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Oct 3, 2024
1 parent fb85644 commit 6415496
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ jobs:
matrix:
exclude:
# Excluding React 18 tests unless on `canary` branch until budget is approved.
- react: ${{ github.event_name == 'pull_request' && '18.3.1' }}
- react: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-react-18-tests') == false && '18.3.1' }}
group: [1/5, 2/5, 3/5, 4/5, 5/5]
# Empty value uses default
react: ['', '18.3.1']
Expand All @@ -224,7 +224,7 @@ jobs:
matrix:
exclude:
# Excluding React 18 tests unless on `canary` branch until budget is approved.
- react: ${{ github.event_name == 'pull_request' && '18.3.1' }}
- react: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-react-18-tests') == false && '18.3.1' }}
group: [1/5, 2/5, 3/5, 4/5, 5/5]
# Empty value uses default
react: ['']
Expand All @@ -245,7 +245,7 @@ jobs:
matrix:
exclude:
# Excluding React 18 tests unless on `canary` branch until budget is approved.
- react: ${{ github.event_name == 'pull_request' && '18.3.1' }}
- react: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-react-18-tests') == false && '18.3.1' }}
group: [1/5, 2/5, 3/5, 4/5, 5/5]
# Empty value uses default
# TODO: Run with React 18.
Expand Down Expand Up @@ -383,7 +383,7 @@ jobs:
matrix:
exclude:
# Excluding React 18 tests unless on `canary` branch until budget is approved.
- react: ${{ github.event_name == 'pull_request' && '18.3.1' }}
- react: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-react-18-tests') == false && '18.3.1' }}
group: [1/4, 2/4, 3/4, 4/4]
# Empty value uses default
react: ['', '18.3.1']
Expand All @@ -403,7 +403,7 @@ jobs:
matrix:
exclude:
# Excluding React 18 tests unless on `canary` branch until budget is approved.
- react: ${{ github.event_name == 'pull_request' && '18.3.1' }}
- react: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run-react-18-tests') == false && '18.3.1' }}
group: [1/5, 2/5, 3/5, 4/5, 5/5]
# Empty value uses default
react: ['', '18.3.1']
Expand Down

0 comments on commit 6415496

Please # to comment.