From bb9a26dc649f83675834336d79dc064245374f58 Mon Sep 17 00:00:00 2001 From: Logan Zartman Date: Thu, 28 Jan 2021 05:22:00 -0600 Subject: [PATCH 1/2] update action --- .github/workflows/test.yml | 8 ++++++++ Makefile | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f8eeb2..8fbf7da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,3 +9,11 @@ jobs: with: submodules: recursive - run: scripts/ci-test.sh + check-format: + name: Formatted with `make format` + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - run: make check-format diff --git a/Makefile b/Makefile index 3bdedf3..f5f45b0 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +SHELL = /bin/bash .SUFFIXES: .PHONY: all @@ -19,6 +20,10 @@ clean: format: clang-format --style=file -i src/**.cpp src/**.hpp +.PHONY: check-format +check-format: + diff -u <(cat src/**.cpp src/**.hpp) <(clang-format --style=file src/**.cpp src/**.hpp) + build/client: build/Makefile (cd build; make -j) From e99447dd0af33431bc38ef94ccf2a5b8beae653e Mon Sep 17 00:00:00 2001 From: Logan Zartman Date: Thu, 28 Jan 2021 05:25:22 -0600 Subject: [PATCH 2/2] make format --- src/WebVizConstants.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WebVizConstants.hpp b/src/WebVizConstants.hpp index 558ceb3..d14b361 100644 --- a/src/WebVizConstants.hpp +++ b/src/WebVizConstants.hpp @@ -37,7 +37,8 @@ static const std::string odometry_topic = "odometry/raw"; static const std::string lidar_2d_topic = "velodyne_2dscan"; /** - * @brief (sensor_msgs/CompressedImage) prefix for a Compressed Image from a stereo camera. + * @brief (sensor_msgs/CompressedImage) prefix for a Compressed Image from a + * stereo camera. */ static const std::string compressed_image_prefix = "image_compressed/";