Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/windows-build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: rclnodejs - Windows Build & Test

on:
Expand Down Expand Up @@ -61,4 +60,4 @@ jobs:
run: |
call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\setup.bat"
cmd /c "if ${{ needs.identify-ros-distro.outputs.distro }}==foxy (set RMW_IMPLEMENTATION=rmw_cyclonedds_cpp&&npm test)"
cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy (npm test)"
cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy if NOT ${{ needs.identify-ros-distro.outputs.distro }}==rolling (npm test)"
Copy link

Copilot AI Apr 24, 2025

Choose a reason for hiding this comment

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

The consecutive 'if NOT' conditions on a single line may lead to ambiguity in command execution. Consider refactoring the command using proper grouping or nested conditions to clearly enforce both checks.

Suggested change
cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy if NOT ${{ needs.identify-ros-distro.outputs.distro }}==rolling (npm test)"
cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy (if NOT ${{ needs.identify-ros-distro.outputs.distro }}==rolling (npm test))"

Copilot uses AI. Check for mistakes.

Loading