From 391edee91f5758f4e8ce1f96cd35800f52d4fcee Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Fri, 5 Mar 2021 20:02:18 +0700 Subject: [PATCH] Add workflow for CI test --- .github/workflows/test-ros2-ci.yml | 17 +++++++++++++++++ docker/entrypoint.sh | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-ros2-ci.yml diff --git a/.github/workflows/test-ros2-ci.yml b/.github/workflows/test-ros2-ci.yml new file mode 100644 index 0000000..2c7eea8 --- /dev/null +++ b/.github/workflows/test-ros2-ci.yml @@ -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: ./ \ No newline at end of file diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index ab33841..76adab4 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -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" \