-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: mokagio/npm_ci
Are you sure you want to change the base?
Conversation
92062e0
to
6f010f1
Compare
$(docker_run) koalaman/shellcheck hooks/** bin/** --exclude=SC1071 | ||
$(docker_run) koalaman/shellcheck $(shell find hooks bin -type f -not -name "*.ps1") --exclude=SC1071 |
There was a problem hiding this comment.
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?)
There was a problem hiding this comment.
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
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') } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* 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!
See #96 (comment) Co-authored-by: Olivier Halligon <[email protected]>
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.
2c0b1d1
to
e36edc3
Compare
`LocalMachine` might not be allowed at a access right level. See how this build failed https://buildkite.com/automattic/beeper-desktop/builds/2897#0191979b-a067-4780-8a45-f051515841f1
Doesn't work! ChatGPT what are you suggesting?! https://buildkite.com/automattic/beeper-desktop/builds/2901#019197e0-da5d-47ec-84ec-8327b4aa5c7c/273-279
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
CHANGELOG.md
if necessary.