Add doctest framework and client base integration tests #11
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| compiler: [g++, clang++] | |
| exclude: | |
| - os: macos-latest | |
| compiler: g++ | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build tests | |
| run: | | |
| cd tests/native | |
| ${{ matrix.compiler }} -std=c++17 -Wall -Wextra -Werror -I../../include -o test_protocol test_protocol.cpp | |
| cd ../.. | |
| ${{ matrix.compiler }} -std=c++17 -Wall -Wextra -Werror -Iinclude -Itests -o tests/test_client tests/test_client.cpp | |
| - name: Run tests | |
| run: | | |
| ./tests/native/test_protocol | |
| ./tests/test_client |