2024-01-12 05:26:11 +00:00
|
|
|
name: Run UnitTests
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-run-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
2024-01-12 05:29:49 +00:00
|
|
|
run: sudo /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get install libgtest-dev cmake git libsodium-dev
|
2024-01-12 05:26:11 +00:00
|
|
|
- name: Get sources
|
2024-01-12 05:31:36 +00:00
|
|
|
run: git clone --depth=1 --no-single-branch https://github.com/Stephen-Seo/UDPConnection.git UDPC && cd UDPC && git checkout $GITHUB_REF_NAME
|
2024-01-12 05:26:11 +00:00
|
|
|
- name: Build sources
|
|
|
|
run: cd UDPC && cmake -S . -B buildDebug -DCMAKE_BUILD_TYPE=Debug && make -C buildDebug
|
|
|
|
- name: Run tests
|
|
|
|
run: ./UDPC/buildDebug/UnitTest
|