Skip to content

Commit cb47d28

Browse files
hi-ogawaclaude
andcommitted
test(rsc): add React canary and experimental version testing to CI
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6540eb8 commit cb47d28

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci-rsc.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@ jobs:
3838
- run: pnpm -C packages/plugin-rsc test
3939

4040
test-e2e:
41-
name: test-rsc (${{ matrix.os }} / ${{ matrix.browser }}) ${{ matrix.rolldown == true && '(rolldown)' || '' }}
41+
name: test-rsc (${{ matrix.os }} / ${{ matrix.browser }}) ${{ matrix.rolldown == true && '(rolldown)' || '' }} ${{ matrix.react_version && format('(react-{0})', matrix.react_version) || '' }}
4242
runs-on: ${{ matrix.os }}
4343
strategy:
4444
matrix:
4545
os: [ubuntu-latest, macos-latest, windows-latest]
4646
browser: [chromium]
4747
rolldown: [false]
48+
react_version: [""]
4849
include:
4950
- os: ubuntu-latest
5051
browser: firefox
@@ -53,6 +54,12 @@ jobs:
5354
- os: ubuntu-latest
5455
browser: chromium
5556
rolldown: true
57+
- os: ubuntu-latest
58+
browser: chromium
59+
react_version: canary
60+
- os: ubuntu-latest
61+
browser: chromium
62+
react_version: experimental
5663
fail-fast: false
5764
steps:
5865
- uses: actions/checkout@v4
@@ -67,6 +74,13 @@ jobs:
6774
run: |
6875
sed -i '/^overrides:/a\ vite: "npm:rolldown-vite@latest"' pnpm-workspace.yaml
6976
pnpm i --no-frozen-lockfile
77+
- name: install react
78+
if: ${{ matrix.react_version || (inputs.react_version && inputs.react_version != 'stable') }}
79+
run: |
80+
REACT_VERSION="${{ matrix.react_version || inputs.react_version }}"
81+
sed -i "/^overrides:/a\ react: \"$REACT_VERSION\"" pnpm-workspace.yaml
82+
sed -i "/^overrides:/a\ react-dom: \"$REACT_VERSION\"" pnpm-workspace.yaml
83+
pnpm i --no-frozen-lockfile
7084
- run: pnpm -C packages/plugin-rsc exec playwright install ${{ matrix.browser }}
7185
- run: pnpm -C packages/plugin-rsc test-e2e-ci --project=${{ matrix.browser }}
7286
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)