Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could we add windows support? #665

Closed
bboyle opened this issue Apr 24, 2023 · 9 comments · Fixed by #666
Closed

could we add windows support? #665

bboyle opened this issue Apr 24, 2023 · 9 comments · Fixed by #666
Assignees
Labels
enhancement New feature or request released

Comments

@bboyle
Copy link

bboyle commented Apr 24, 2023

Is your feature request related to a problem? Please describe.

This action currently checks the platform and blocks on windows.

CodeClimate say "Test Reporter tool now available for Windows" https://codeclimate.com/changelog/7dd79ee1cf1af7141b2bd18b
so maybe it's possible to easily support windows?

Describe the solution you'd like

I would like to run this action on windows.

Describe alternatives you've considered

Other codeclimate coverage reporter actions don't seem as full-featured (especially collecting multiple coverage reports from a monorepo).

Running the actions on linux caused other integration issues.
The cost of running my automated tests on linux is higher than on windows (linux minutes are cheaper on github, but the tests take so much longer to run that the net cost is higher).

Additional context

If this is something I can help with, let me know. I can see where the windows platform checks are but don't know if it's as simple as removing them, or if more is required. I'm not familiar with creating github actions.

@bboyle bboyle added the enhancement New feature or request label Apr 24, 2023
@paambaati
Copy link
Owner

Thanks for bringing this to my notice! I will bring Windows support shortly. You can track #666 for updates.

@paambaati
Copy link
Owner

paambaati commented May 1, 2023

@bboyle Please see codeclimate/test-reporter#517 (comment)

While I've been slowly but steadily making progress on getting all tests to pass on Windows, the reporter supports only AMD distributions. I am not sure of what architecture you use, and what else is out there in the Windows world, as I'm primarily a *nix user, but this is something to keep in mind.

@bboyle
Copy link
Author

bboyle commented May 1, 2023

that's an unusual choice by code climate 😅 I was planning to run it in a github action, so depends what github run here. Not sure if I can specify the CPU architecture but will find out (and send feedback to codeclimate if it's an issue).

@paambaati
Copy link
Owner

Weekend update – I think I have it ready to run on Windows, except for an unexplained issue where tests are failing on CI alone.

I've raised it here – tape-testing/tape#593

@bboyle
Copy link
Author

bboyle commented May 6, 2023

I see how much work you're doing on it, thanks!

paambaati added a commit that referenced this issue May 7, 2023
BREAKING CHANGE: Support Windows, now that CodeClimate has released a Windows binary of the reporter – see codeclimate.com/changelog/7dd79ee1cf1af7141b2bd18b

Fixes #665.
@paambaati
Copy link
Owner

Please hold on while I fix my broken release process; raised at semantic-release/semantic-release#2788

@paambaati paambaati reopened this May 7, 2023
github-actions bot pushed a commit that referenced this issue Jul 6, 2023
# [5.0.0](v4.0.0...v5.0.0) (2023-07-06)

### Bug Fixes

* **ci:** checkout EVERYTHING so semantic-release has all the data it could need ([a16dca5](a16dca5))
* **ci:** do not cancel all matrix builds for one ([1471593](1471593))
* **ci:** set up correct regex that replaces the 'v' prefixes for tags ([b3bcc0e](b3bcc0e))
* **core:** handle globs correctly in windows ([54ac87c](54ac87c))
* **core:** parse coverage path correctly on all platforms ([923001d](923001d))
* create hash from windows ([077e614](077e614))
* keep windows-style line endings for .bat files ([67549ff](67549ff))
* set up gitattributes to stop the line ending fuckery ([4246a36](4246a36))
* set up gitattributes to stop the line ending fuckery ([9181fd8](9181fd8))
* **tests:** additional windows-style test fixes ([def6f6d](def6f6d))
* **tests:** fix tests for Windows ([18e310b](18e310b))
* **tests:** fix the Windows path ([6e02942](6e02942)), closes [/github.com/tape-testing/tape/issues/593#issuecomment-1537292595](https://github.com//github.com/ljharb/tape/issues/593/issues/issuecomment-1537292595)
* **tests:** make sure the special variable in script are quoted to make string comparison work ([c796f65](c796f65))
* **tests:** mock checksum verification too ([2befa84](2befa84))
* **tests:** more windows-specific test fixes ([de37362](de37362))
* **tests:** more windows-specific test fixes ([e44e0a3](e44e0a3))
* **tests:** more windows-specific test fixes ([0b2f6f8](0b2f6f8))
* **tests:** more windows-specific test fixes ([9a9184a](9a9184a))
* **tests:** more windows-specific test fixes ([1c1a7eb](1c1a7eb))
* **tests:** more windows-specific test fixes ([8d2edab](8d2edab))
* **tests:** more windows-specific test fixes ([e05d58f](e05d58f))
* **tests:** more windows-specific tests ([e9e87cc](e9e87cc))
* **tests:** more windows-specific tests ([13ff2e3](13ff2e3))
* **tests:** more windows-specific tests ([80aa61e](80aa61e))
* **tests:** more windows-specific tests ([498dee1](498dee1))
* **tests:** more windows-specific tests ([f4dff2a](f4dff2a))
* **tests:** more windows-specific tests ([4b48851](4b48851))
* **tests:** OS-agnostic line separators for all strings ([2fc4cc3](2fc4cc3))
* **tests:** remove windows-only test and start writing os-independent logic ([29cbd91](29cbd91))
* **tests:** run checksum verification pre-checks only for fixtures on their own target platforms ([4dc408b](4dc408b))
* **tests:** set up correct file mode on Windows ([4edff7e](4edff7e))
* **tests:** set up Windows fixtures ([c29289f](c29289f))
* **tests:** skip integration tests on unsupported platforms ([00e5b40](00e5b40))
* **tests:** try correcting extra spaces in checksum files generated on Windows ([edc5e97](edc5e97))
* try LF-only line endings for all files ([e2c94ee](e2c94ee))
* **util:** follow redirects in fetch ([a258bd9](a258bd9))

### core

* Support Windows ([9af890c](9af890c))
* Support Windows ([3434c61](3434c61))

### Features

* **core:** Support Windows ([f0efca8](f0efca8)), closes [#665](#665)
* **core:** Support Windows ([9787ba6](9787ba6))
* **utils:** refactor coverage config line parser into own util ([e03d453](e03d453))

### BREAKING CHANGES

* this should ideally get published as v5
* this should ideally get published as v5
* **core:** Support Windows, now that CodeClimate has released a Windows binary of the reporter – see codeclimate.com/changelog/7dd79ee1cf1af7141b2bd18b
* **core:** Support Windows, now that CodeClimate has released a Windows binary of the reporter
@paambaati
Copy link
Owner

🎉 This issue has been resolved in version 5.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@paambaati
Copy link
Owner

paambaati commented Jul 6, 2023

@bboyle I was finally able to land this in v5 of the action after a break from employment. Let me know if this works!

@bboyle
Copy link
Author

bboyle commented Jul 8, 2023

sadly I don't have an easy way to test this now — my company shifted to a self-hosted gitlab. was looking forward to trying this out, I got a lot of great use from this codeclimate action while we were on github. thank you! I hope this windows release helps another dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants