summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/run-tests.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
new file mode 100644
index 0000000..8d282ad
--- /dev/null
+++ b/.github/workflows/run-tests.yml
@@ -0,0 +1,21 @@
+name: run-tests
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Install gtest
+ uses: MarkusJx/[email protected]
+ - uses: actions/checkout@v3
+ - name: Run CMake configure
+ run: mkdir build && cd build && cmake ..
+ - name: Compile
+ run: cd build && make -j
+ - name: Run tests
+ run: ${GITHUB_WORKSPACE}/build/all_tests \ No newline at end of file