* MDF [workflows] use ctest for code coverage test;
@@ -17,15 +17,13 @@ jobs:
pip install Jinja2 paho-mqtt
- name: Configure
- run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DNNG_ENABLE_COVERAGE=ON -DNNG_ENABLE_TLS=ON -DNNG_ENABLE_SQLITE=ON ..
+ run: mkdir build && cd build && cmake -G Ninja -DNANOMQ_TESTS=ON -DDEBUG=ON -DASAN=ON -DNNG_ENABLE_COVERAGE=ON -DNNG_ENABLE_TLS=ON -DNNG_ENABLE_SQLITE=ON ..
- name: build
- run: cd build && ninja && sudo ninja install
+ run: cd build && ninja
- name: Test
- run: |
- python3 .github/scripts/test.py
- # run: cd build && ctest --output-on-failure
+ run: cd build && ctest --output-on-failure
- name: Upload report
uses: codecov/codecov-action@v1
