-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github workflow for unit tests on PRs
- Loading branch information
stribor14
committed
Sep 20, 2024
1 parent
eb3f251
commit 86bfcb9
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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 | ||
pwd | ||
ls | ||
- name: Run Tests | ||
run: | | ||
pwd | ||
ls | ||
.build/test/unit_tests | ||