@@ -11,27 +11,19 @@ jobs:
1111 runs-on : ubuntu-24.04
1212 container :
1313 image : quay.io/carologistics/clips_executive_base_image:kilted
14- options : --user root
14+ options : --user root --workdir /ros_ws
1515 steps :
16- - name : Checkout repository
17- uses : actions/checkout@v3
18- with :
19- fetch-depth : 0 # ensures full git history is present
20-
2116 - name : Install pre-commit
2217 run : |
2318 apt update && apt install -y pre-commit git
2419
20+ - name : Checkout repository
21+ uses : actions/checkout@v6
22+
2523 - name : Run pre-commit hooks
26- working-directory : /github/workspace
2724 run : |
28- # Source ROS environment
2925 . /opt/ros/kilted/setup.sh
30-
31- # Run pre-commit in the repository
3226 pre-commit run --all-files --hook-stage manual
33- env :
34- PRE_COMMIT_HOME : /var/cache/pre-commit
3527
3628 ros-build :
3729 runs-on : ubuntu-24.04
@@ -41,22 +33,15 @@ jobs:
4133 ros_distro : [humble, jazzy, kilted]
4234 container :
4335 image : quay.io/carologistics/clips_executive_base_image:${{ matrix.ros_distro }}
44- options : --user root
36+ options : --user root --workdir /ros_ws
4537 steps :
4638 - name : Checkout repository
47- uses : actions/checkout@v3
39+ uses : actions/checkout@v6
4840
4941 - name : Build ROS workspace
5042 run : |
5143 set -e
5244 export ROS_DISTRO=${{ matrix.ros_distro }}
5345 echo "Building workspace for $ROS_DISTRO"
5446 . /opt/ros/$ROS_DISTRO/setup.sh
55- cd /ros_ws
5647 colcon build --merge-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF
57-
58- - name : Run ROS tests
59- run : |
60- . /opt/ros/${{ matrix.ros_distro }}/setup.sh
61- cd /ros_ws
62- colcon test
0 commit comments