Skip to content

Commit 1ccf4f1

Browse files
committed
ci: add react version matrix to ci workflows
1 parent 36967ac commit 1ccf4f1

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555

5656
test:
5757
runs-on: ubuntu-latest
58+
strategy:
59+
matrix:
60+
react: ['18', '19']
5861
steps:
5962
- name: Checkout repository
6063
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
@@ -70,6 +73,8 @@ jobs:
7073
key: ${{ runner.os }}-turbo-${{ github.sha }}
7174
restore-keys: |
7275
${{ runner.os }}-turbo-
76+
- if: ${{ matrix.react == '19' }}
77+
run: node script/setup-react-19.mts
7378
- name: Install dependencies
7479
run: npm ci
7580
- name: Build
@@ -81,6 +86,9 @@ jobs:
8186

8287
type-check:
8388
runs-on: ubuntu-latest
89+
strategy:
90+
matrix:
91+
react: ['18', '19']
8492
steps:
8593
- name: Checkout repository
8694
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
@@ -96,6 +104,8 @@ jobs:
96104
key: ${{ runner.os }}-turbo-${{ github.sha }}
97105
restore-keys: |
98106
${{ runner.os }}-turbo-
107+
- if: ${{ matrix.react == '19' }}
108+
run: node script/setup-react-19.mts
99109
- name: Install dependencies
100110
run: npm ci
101111
- name: Build project
@@ -105,6 +115,9 @@ jobs:
105115

106116
examples:
107117
runs-on: ubuntu-latest
118+
strategy:
119+
matrix:
120+
react: ['18', '19']
108121
steps:
109122
- name: Checkout repository
110123
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
@@ -120,6 +133,8 @@ jobs:
120133
key: ${{ runner.os }}-turbo-${{ github.sha }}
121134
restore-keys: |
122135
${{ runner.os }}-turbo-
136+
- if: ${{ matrix.react == '19' }}
137+
run: node script/setup-react-19.mts
123138
- name: Install dependencies
124139
run: npm ci
125140
- name: Build

0 commit comments

Comments
 (0)