Skip to content

Add doctest framework and client base integration tests #11

Add doctest framework and client base integration tests

Add doctest framework and client base integration tests #11

Workflow file for this run

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