summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-09-17 15:27:58 +0800
committerKeuin <[email protected]>2022-09-17 15:52:24 +0800
commitda03ccd81467af87452b45763da87a4e3ce603a1 (patch)
tree7acac1afea5d6873c583f0d9ab01bad09dce08c5 /.github
parent29a9208364fc245432beb0846f014f47fd560fee (diff)
Run test with GitHub actions.
Diffstat (limited to '.github')
-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