From 4216a98ef1131a9c940d741f8ceddf320c7ff99b Mon Sep 17 00:00:00 2001 From: Toshiki Nakamura <82020865+ToshikiNakamura0412@users.noreply.github.com> Date: Sun, 8 Oct 2023 22:52:24 +0900 Subject: [PATCH] Update CI (#20) --- .github/workflows/main.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ed1648a..cecb0fd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,23 +1,24 @@ -name: CI +name: ci on: push: - branches: [ master ] + branches: + - master pull_request: - branches: [ master ] + branches: + - master jobs: build: - runs-on: ubuntu-latest - strategy: - matrix: - ros_distro: [melodic, noetic] + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - - name: build Dockerfile - run: | - docker build -t ${{github.repository}}:${{matrix.ros_distro}} -f Dockerfile . --build-arg ros_distro=${{matrix.ros_distro}} - - name: catkin_make with running tests - run: | - docker run --rm ${{github.repository}}:${{matrix.ros_distro}} bash -c "catkin_make run_tests && catkin_test_results" + - name: Checkout + uses: actions/checkout@v3 + - name: Setup ROS + uses: ros-tooling/setup-ros@v0.6 + with: + required-ros-distributions: noetic + - name: Build + uses: ros-tooling/action-ros-ci@v0.3 + with: + target-ros1-distro: noetic