From 3c8e16ecf7ee6cfce9ea13a0c5d3a4d0e0d8efdb Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Sun, 28 Jul 2024 07:53:38 -0400 Subject: [PATCH 1/2] Basic Blocks gets codequal --- .github/workflows/code-checks.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/code-checks.yml diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml new file mode 100644 index 0000000..ced2850 --- /dev/null +++ b/.github/workflows/code-checks.yml @@ -0,0 +1,17 @@ +name: Format Check +on: [pull_request] +jobs: + formatting-check: + name: Clang Format Check + runs-on: ubuntu-latest + strategy: + matrix: + path: [ 'tests', 'include' ] + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Run clang-format style check + uses: surge-synthesizer/sst-githubactions/clang-format-check@main + with: + path: ${{ matrix.path }} From c79919cef46e6cb180277259c7bd8811edba9cc2 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Sun, 28 Jul 2024 07:58:29 -0400 Subject: [PATCH 2/2] move catch2 so we can format check --- CMakeLists.txt | 1 + {tests => libs/catch2}/catch2.hpp | 0 2 files changed, 1 insertion(+) rename {tests => libs/catch2}/catch2.hpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b442bd..6814ab6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,7 @@ if (${SST_BASIC_BLOCKS_BUILD_TESTS}) endif () target_link_libraries(sst-basic-blocks-test PRIVATE fmt ${PROJECT_NAME}) + target_include_directories(sst-basic-blocks-test PRIVATE libs/catch2) if ((DEFINED ${CMAKE_OSX_DEPLOYMENT_TARGET}) AND ("${CMAKE_OSX_DEPLOYMENT_TARGET}" VERSION_LESS "10.12")) message(STATUS "Deactivating exceptions for ${CMAKE_OSX_DEPLOYMENT_TARGET} catch library") diff --git a/tests/catch2.hpp b/libs/catch2/catch2.hpp similarity index 100% rename from tests/catch2.hpp rename to libs/catch2/catch2.hpp