Skip to content

Commit

Permalink
Add workflow for CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Mar 5, 2021
1 parent 05dbe74 commit 391edee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/test-ros2-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test ROS 2 CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build-and-test:
runs-on: ubuntu-latest
name: Build and test the ROS 2 CI
steps:
- name: Checking out
uses: actions/checkout@v2.3.4
- name: Test the ROS 2 CI
uses: ./
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
dockerd-entrypoint.sh &
sleep 10

mkdir "/ros2/ws" && cp -r "${GITHUB_REPOSITORY}" "/ros2/ws" || exit $?
mkdir "/ros2/ws" && cp -r "${GITHUB_WORKSPACE}" "/ros2/ws" || exit $?

docker build \
--build-arg ROS2_DISTRO="$1" \
Expand Down

0 comments on commit 391edee

Please sign in to comment.