Skip to content

ci: add windows-latest to e2e job#1237

Open
NikitaKorevo wants to merge 1 commit into
OpenAPITools:masterfrom
NikitaKorevo:add-windows-latest-to-e2e-job
Open

ci: add windows-latest to e2e job#1237
NikitaKorevo wants to merge 1 commit into
OpenAPITools:masterfrom
NikitaKorevo:add-windows-latest-to-e2e-job

Conversation

@NikitaKorevo

@NikitaKorevo NikitaKorevo commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

If we don't remove process.env.PWD || process.env.INIT_CWD, part of test cd ./foo && npm run oa:generate will fail for Windows.

close #815, will be outdated
resolve #624, no process.env.INIT_CWD no problem
related with #690, was discussion about cwd


Summary by cubic

Add Windows to the E2E CI and make cwd detection OS-agnostic so generator tests run reliably on Windows. Fixes failures in the Windows path flow when running generation commands.

  • Bug Fixes
    • generator-cli: use process.cwd() only (drop PWD/INIT_CWD) to fix Windows path handling during commands like cd ./foo && npm run oa:generate.
    • E2E workflow: add windows-latest; set Yarn bin to PATH; set OPENAPI_GENERATOR_CLI_SEARCH_URL via $GITHUB_ENV; split test steps for cross-platform compatibility.

Written for commit b12cda7. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

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.

Reading of config not working with yarn on Windows

1 participant