Skip to content

Commit 5c4c297

Browse files
committed
CI: tests and mosquitto
1 parent 4330fae commit 5c4c297

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
ref: ${{ github.event.inputs.branch || github.event.client_payload.branch || github.ref }}
3030

3131
- name: Configure project with CMake
32-
run: cmake -B build/output -S . -G "${{ matrix.generator }}" -DTODO_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
32+
run: cmake -B build/output -S . -G "${{ matrix.generator }}" -DOPENDAQ_MQTT_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
3333

3434
- name: Build project with CMake
3535
run: cmake --build build/output --config Debug
3636

3737
- name: Install and run mosquitto Linux
3838
if: matrix.os == 'ubuntu-latest'
3939
run: |
40-
sudo apt-get install -y --no-install-recommends # TODO add mosquitto package name
40+
sudo apt-get install -y --no-install-recommends mosquitto
4141
# TODO mosquitto run cmds
4242
4343
- name: Install and run mosquitto Windows

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ endif()
6363

6464
set(MQTT_MODULE_VERSION "0.1.0" CACHE STRING "MQTT module version" FORCE)
6565

66+
if(OPENDAQ_MQTT_ENABLE_TESTS)
67+
enable_testing()
68+
endif()
69+
6670
add_subdirectory(external)
6771
add_subdirectory(shared)
6872
add_subdirectory(modules)

0 commit comments

Comments
 (0)