Add DirCon loopback integration test and CI workflow #4
Workflow file for this run
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: DirCon loopback integration test | |
| on: | |
| pull_request: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| linux-dircon-loopback: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Qt dependencies | |
| run: | | |
| sudo apt update -y | |
| sudo apt-get install -y \ | |
| qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools \ | |
| qtquickcontrols2-5-dev qtconnectivity5-dev qtpositioning5-dev \ | |
| libqt5bluetooth5 libqt5widgets5 libqt5positioning5 libqt5xml5 \ | |
| libqt5charts5-dev libqt5charts5 libqt5networkauth5-dev \ | |
| libqt5websockets5 libqt5websockets5-dev \ | |
| libqt5sql5-sqlite libqt5sql5 libqt5sql5-mysql libqt5sql5-psql \ | |
| libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev \ | |
| libxcb-shape0-dev libxcb-xkb-dev | |
| - name: Build qdomyos-zwift static library | |
| run: | | |
| qmake src/qdomyos-zwift-lib.pro | |
| make -j"$(nproc)" | |
| - name: Build test binary | |
| run: | | |
| qmake tst/qdomyos-zwift-tests.pro | |
| make -j"$(nproc)" | |
| - name: Run DirCon loopback test (fakebike server -> dircon client) | |
| run: | | |
| cd tst | |
| ./qdomyos-zwift-tests --gtest_filter=DirconLoopbackTestSuite.* |