-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
672d0fd
commit 8a51d93
Showing
2 changed files
with
17 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,27 +8,23 @@ on: | |
jobs: | ||
black: | ||
name: Black | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Black | ||
uses: psf/[email protected] | ||
- uses: actions/checkout@v3 | ||
- uses: psf/black@stable | ||
with: | ||
options: --line-length=99 | ||
|
||
spellcheck: | ||
name: Spellcheck | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Spellcheck | ||
uses: rojopolis/[email protected] | ||
- uses: actions/checkout@v3 | ||
- uses: rojopolis/[email protected] | ||
|
||
industrial_ci: | ||
name: Industrial CI | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
strategy: | ||
fail-fast: false | ||
|
@@ -38,10 +34,6 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Act + Docker fix | ||
run: | | ||
sudo chown runner:docker /var/run/docker.sock | ||
- name: Setup ROS2 Workspace and Clone Repositories | ||
run: | | ||
mkdir -p src | ||
|
@@ -53,15 +45,16 @@ jobs: | |
cp -r src/ros2_controllers/imu_sensor_broadcaster src/ | ||
rm -rf src/ros2_controllers | ||
# Package micro_ros_msgs does not have industrial ci and tests does not pass. | ||
# For more information see https://github.com/micro-ROS/micro_ros_msgs/issues/7 | ||
- name: Remove tests from micro_ros_msgs | ||
- name: Leave only ROSbot tests | ||
shell: bash | ||
run: sed '/if(BUILD_TESTING)/,/endif()/d' src/micro_ros_msgs/CMakeLists.txt -i | ||
run: | | ||
sed '/if(BUILD_TESTING)/,/endif()/d' src/diff_drive_controller/CMakeLists.txt -i | ||
sed '/if(BUILD_TESTING)/,/endif()/d' src/imu_sensor_broadcaster/CMakeLists.txt -i | ||
# Package micro_ros_msgs does not have industrial ci and tests does not pass. | ||
# For more information see https://github.com/micro-ROS/micro_ros_msgs/issues/7 | ||
sed '/if(BUILD_TESTING)/,/endif()/d' src/micro_ros_msgs/CMakeLists.txt -i | ||
- name: Running ROS Industrial CI | ||
uses: ros-industrial/industrial_ci@master | ||
- uses: ros-industrial/industrial_ci@master | ||
env: | ||
ROS_DISTRO: ${{matrix.ROS_DISTRO}} | ||
DOCKER_IMAGE: ros:${{matrix.ROS_DISTRO}}-ros-base | ||
IMMEDIATE_TEST_OUTPUT: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters