Skip to content

fix(ci): globally install @cctest/scheduler in Windows test jobs#173

Merged
star-e merged 2 commits into
v4.0.0from
copilot/fix-win-runtestcases-job
Jun 29, 2026
Merged

fix(ci): globally install @cctest/scheduler in Windows test jobs#173
star-e merged 2 commits into
v4.0.0from
copilot/fix-win-runtestcases-job

Conversation

Copilot AI commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

The Win-RunTestCases and Win-RunTestCasesCustom jobs were failing because the scheduler CLI (@cctest/scheduler) was not available in PowerShell's PATH — the npm install step only installs local project dependencies, leaving the global binary absent.

Changes

  • .github/workflows/run_test_cases.yml: added npm install -g @cctest/scheduler to the npm install step in both Windows jobs (Win-RunTestCases and Win-RunTestCasesCustom), using the same mirror registry already in use:
- name: npm install
  run: |
    npm -v
    npm install --registry https://registry.npmmirror.com
    npm install -g @cctest/scheduler --registry https://registry.npmmirror.com

This places the scheduler binary on the global PATH before the "Run test cases" step executes, and also ensures the expected global module path (%APPDATA%\npm\node_modules\@cctest\scheduler\...) exists for the job-ID read that follows.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Win-RunTestCases fix(ci): globally install @cctest/scheduler in Windows test jobs Jun 29, 2026
Copilot AI requested a review from star-e June 29, 2026 09:42
@star-e
star-e marked this pull request as ready for review June 29, 2026 09:43
@star-e

star-e commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

@cocos-robot run test cases

@star-e
star-e merged commit 8ce19b6 into v4.0.0 Jun 29, 2026
16 checks passed
@github-actions

Copy link
Copy Markdown

@Copilot ❗ There was an error during the execution of the tasks. Please check the logs for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants