summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorVasile Vilvoiu <vasi@vilvoiu.ro>2021-07-21 18:43:02 +0300
committerVasile Vilvoiu <vasi@vilvoiu.ro>2021-07-21 18:43:02 +0300
commita7c430fa81c9e22dbce74869a0a27304da78855b (patch)
tree8a9f91f64131f404f61ba33bd92082996ca13c1c /.github/workflows
parent270dfd60cde3a7b65a2654eef0f299f32ca704c4 (diff)
Implement unit tests.
ColorMap, FFT, InputParser, InputReader, ValueMap, WindowFunction. Closes #11.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cd36af6..8fa439f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- name: Install dependencies
- run: sudo apt-get install libfftw3-dev libsfml-dev
+ run: sudo apt-get install libfftw3-dev libsfml-dev libgtest-dev
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
@@ -33,7 +33,7 @@ jobs:
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
- run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
+ run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTESTING=ON
- name: Build
working-directory: ${{runner.workspace}}/build
@@ -41,7 +41,7 @@ jobs:
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE
- - name: Test
+ - name: Unit tests
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute tests defined by the CMake configuration.