From 55f86d5c15861e4cff56cec9e3818ab063d62c1e Mon Sep 17 00:00:00 2001 From: stribor14 Date: Fri, 20 Sep 2024 11:10:00 +0200 Subject: [PATCH] Add github workflow for unit tests on PRs --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3ddd6ec --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Unit Tests + +on: + pull_request: + branches: + - '**' + +jobs: + build-and-test: + runs-on: ubuntu-20.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Dependencies + run: sudo apt-get install -y libeigen3-dev libgtest-dev + + - name: Build Project + run: | + mkdir build + cd build + cmake .. -DBUILD_TESTS=ON + make + + - name: Run Tests + run: ./build/test/unit_tests +