From c8fd975978d140dd3fba0886eef3d799fa9884db Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 16 Jun 2026 16:01:46 +0800 Subject: [PATCH 1/3] fix: use self-contained CI workflow instead of external rc-test workflow The external workflow react-component/rc-test/.github/workflows/test.yml@main has switched to bun (oven-sh/setup-bun), but this project uses npm. Switch to a self-contained workflow that runs: - actions/checkout@v4 - actions/setup-node@v4 (Node 18) - npm ci - npm run lint - npm run lint:tsc - npm run compile - npm test --- .github/workflows/react-component-ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/react-component-ci.yml b/.github/workflows/react-component-ci.yml index f860ff1..376378e 100644 --- a/.github/workflows/react-component-ci.yml +++ b/.github/workflows/react-component-ci.yml @@ -2,5 +2,14 @@ name: ✅ test on: [push, pull_request] jobs: test: - uses: react-component/rc-test/.github/workflows/test.yml@main - secrets: inherit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + - run: npm ci + - run: npm run lint + - run: npm run lint:tsc + - run: npm run compile + - run: npm test From ebe33ec335367f8a535c491ac1b814c896b2e17b Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 16 Jun 2026 16:05:10 +0800 Subject: [PATCH 2/3] fix: improve CI workflow reliability - Use actions/checkout@v4 and actions/setup-node@v4 (current versions) - Add cache: npm for faster installs - Use node 20 LTS for better compatibility - Add --forceExit to npm test to prevent hanging in CI --- .github/workflows/react-component-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/react-component-ci.yml b/.github/workflows/react-component-ci.yml index 376378e..0c5baa3 100644 --- a/.github/workflows/react-component-ci.yml +++ b/.github/workflows/react-component-ci.yml @@ -7,9 +7,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 + cache: npm - run: npm ci - run: npm run lint - run: npm run lint:tsc - run: npm run compile - - run: npm test + - run: npm test -- --forceExit From 2a814e185359954ecce8a0ae8488250965bf8abe Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 16 Jun 2026 16:07:13 +0800 Subject: [PATCH 3/3] fix: use rc-test npm workflow for CI React to react-component/rc-test/.github/workflows/test-npm.yml@main, which uses npm (not bun) and runs: npm i --legacy-peer-deps npm run lint npx tsc --noEmit npm run compile npm run test -- --coverage --- .github/workflows/react-component-ci.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/react-component-ci.yml b/.github/workflows/react-component-ci.yml index 0c5baa3..21c2458 100644 --- a/.github/workflows/react-component-ci.yml +++ b/.github/workflows/react-component-ci.yml @@ -2,15 +2,5 @@ name: ✅ test on: [push, pull_request] jobs: test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm - - run: npm ci - - run: npm run lint - - run: npm run lint:tsc - - run: npm run compile - - run: npm test -- --forceExit + uses: react-component/rc-test/.github/workflows/test-npm.yml@main + secrets: inherit