test: add chainmodel unit coverage for issue 02 #216
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Test | |
| on: | |
| push: | |
| branches: [ "**" ] | |
| pull_request: | |
| branches: [ "**" ] | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| ninja-build \ | |
| pkg-config \ | |
| libevent-dev \ | |
| libsqlite3-dev \ | |
| zlib1g-dev \ | |
| libboost-all-dev \ | |
| qt6-base-dev \ | |
| qt6-base-dev-tools \ | |
| qt6-tools-dev \ | |
| qt6-l10n-tools \ | |
| qt6-tools-dev-tools \ | |
| qt6-declarative-dev \ | |
| qml6-module-qtquick \ | |
| qml6-module-qtqml \ | |
| libgl-dev \ | |
| libqrencode-dev | |
| - name: Configure (CMake) | |
| run: | | |
| cmake -S . -B build -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DBUILD_APP_TESTS=ON | |
| - name: Build | |
| run: cmake --build build --parallel | |
| - name: Run tests | |
| run: ctest --test-dir build --output-on-failure | |