Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from esteve/fix-ci
Browse files Browse the repository at this point in the history
Report errors on CI
  • Loading branch information
mitsudome-r authored Nov 12, 2020
2 parents d281b70 + ed547c0 commit 2f6bc7a
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,35 @@ 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:
- name: Check out repo
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

0 comments on commit 2f6bc7a

Please sign in to comment.