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

Add PowerShell command to setup Windows environment #100

Draft
wants to merge 31 commits into
base: mokagio/npm_ci
Choose a base branch
from

Conversation

mokagio
Copy link
Contributor

@mokagio mokagio commented Jun 3, 2024


  • I have considered if this change warrants release notes and have added them to the appropriate section in the CHANGELOG.md if necessary.

$(docker_run) koalaman/shellcheck hooks/** bin/** --exclude=SC1071
$(docker_run) koalaman/shellcheck $(shell find hooks bin -type f -not -name "*.ps1") --exclude=SC1071
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

(I wonder if there's a shellcheck equivalent for PowerShell btw… though probably only a thing to look at when we'll start tacking #101 more officially/broadly?)

Copy link
Contributor

@AliSoftware AliSoftware Jun 25, 2024

Choose a reason for hiding this comment

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

I wonder if there's a shellcheck equivalent for PowerShell btw…

Found this… in case we want to look into it at some point

Comment on lines -14 to +18
context 'All Commands Should Be Executable' do
Dir.children('bin').map { |f| File.new(File.join('bin', f)) }.each do |file|
it file.path do
expect(file.stat.executable?).to be true
context 'All Unix Commands Should Be Executable' do
Dir
.children('bin')
# Ignore Windows PowerShell scripts
.reject { |f| f.end_with?('.ps1') }
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

wzieba and others added 16 commits August 5, 2024 17:19
* Introduce `merge_junit` script

To improve performance of Android unit tests collection. Originated it woocommerce/woocommerce-android#12064

* Add changelog entry

* Address SC2129

Consider using { cmd1; cmd2; } >> file instead of individual redirects. https://www.shellcheck.net/wiki/SC2129

* Remove `sh` suffix

To align to other commands

* Create output file before saving data there

* Rename script to `merge_junit_reports`

* Remove `<testsuites>` tag if it's present in any report that is about to be merged

* Update CHANGELOG.md

Co-authored-by: Olivier Halligon <[email protected]>

---------

Co-authored-by: Olivier Halligon <[email protected]>
* Link to GitHub releases instead of updating README on each release

To streamline the process

* Update CHANGELOG.md

* Remove typo in README

* Revert "Remove typo in README"

This reverts commit 09a36fd.

* Revert "Link to GitHub releases instead of updating README on each release"

This reverts commit 5e51cf7.

* Update version in README to 3.5.0
… name (#106)

By moving away from using an XPath expression and instead doing the filtering manually on the array of all the testcase sibling nodes
If a project uses `yarn` it should not use the `npm ci` command in CI!
Even if one runs `chmod u+x` on the file, the test fails.
Anyways, we don't care about PowerShell being executable from a Unix
point of view, because they should be used only under Windows.
I usually use Vim for Ruby files, where I have RuboCop configured.
Today, I used VS Code, where I _should have_ configured RuboCop but
evidently have not.
Context: I tried calling `add_ssh_key_to_agent` straight from the
Windows environment but it didn't work.
@mokagio mokagio force-pushed the mokagio/windows-utils branch from 2c0b1d1 to e36edc3 Compare August 28, 2024 02:59
Seems like all the flags did not make any difference in terms of whether
the symlink creation was attempted.

E.g. This build failed with the same symlink error as before, despite
having the flags
https://buildkite.com/automattic/beeper-desktop/builds/2907#0191982e-d1c5-402f-99be-2299321ccbe6
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.

3 participants