From ed547c0c8eb5ea0f0f126d6c2741c70b87f50522 Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Mon, 9 Nov 2020 12:13:34 +0100 Subject: [PATCH] Report errors on CI --- .github/workflows/build_and_test.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index fb0faf937..8fa3b58f6 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -2,13 +2,15 @@ name: Build and test on: pull_request: + branches: + - ros2 push: branches: - ros2 jobs: build-and-test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest container: ros:foxy steps: @@ -16,10 +18,19 @@ jobs: uses: actions/checkout@v2 - name: Install missing dependencies - run: rosdep update && DEBIAN_FRONTEND=noninteractive sudo rosdep install --from-paths . --ignore-src --rosdistro foxy -y + run: | + sudo apt update + rosdep update + DEBIAN_FRONTEND=noninteractive rosdep install --from-paths . --ignore-src --rosdistro foxy -y - name: Build - run: . /opt/ros/foxy/setup.sh && colcon build --event-handlers console_cohesion+ + run: | + . /opt/ros/foxy/setup.sh + colcon build --event-handlers console_cohesion+ - name: Run tests - run: . /opt/ros/foxy/setup.sh && colcon test --event-handlers console_cohesion+ + run: | + . /opt/ros/foxy/setup.sh + colcon test \ + --event-handlers console_cohesion+ \ + --return-code-on-test-failure