Skip to content

chore(deps): pre-commit.ci autoupdate #204

chore(deps): pre-commit.ci autoupdate

chore(deps): pre-commit.ci autoupdate #204

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true # cancel if new changes are pushed
jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install shfmt
run: sudo snap install shfmt
- name: Check
run: make check
ros:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ros_distro: noetic
python_suffix: 3
container:
image: ros:${{ matrix.ros_distro }}-robot
env:
DEBIAN_FRONTEND: "noninteractive"
steps:
- uses: actions/checkout@v3
- name: Setup
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y python${{ matrix.python_suffix }}-catkin-tools clang-tidy-10
$GITHUB_WORKSPACE/install.sh
- name: Init Workspace
run: |
mkdir -p $GITHUB_WORKSPACE/../catkin_ws/src
cd $GITHUB_WORKSPACE/../catkin_ws/src
ln -s $GITHUB_WORKSPACE telecarla
ln -s $GITHUB_WORKSPACE/../ros-bridge ros-bridge
cd ..
catkin init
- name: Build and Check
shell: bash
run: |
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
cd $GITHUB_WORKSPACE/../catkin_ws
catkin build --summarize --no-status --force-color --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_CLANG_TIDY=clang-tidy-10
- name: Test
shell: bash
run: |
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
cd $GITHUB_WORKSPACE/../catkin_ws
catkin run_tests --no-status --force-color && catkin_test_results