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
23 changes: 18 additions & 5 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Build Docker image
run: |
docker build -t knowrob/ros1 .

- name: Build Docker image
run: docker build -t knowrob/ros1 .
- name: Run ROS unit tests
run: |
docker run --rm \
--entrypoint "" \
-v "${{ github.workspace }}:/catkin_ws/src/knowrob_ros:ro" \
-w /catkin_ws \
knowrob/ros1 bash -lc "\
source /opt/ros/noetic/setup.bash && \
catkin build knowrob_ros && \
source devel/setup.bash && \
rostest knowrob_ros test_knowrob_ros_lib.test \
"