From da03ccd81467af87452b45763da87a4e3ce603a1 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 17 Sep 2022 15:27:58 +0800 Subject: Run test with GitHub actions. --- .github/workflows/run-tests.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/run-tests.yml (limited to '.github') 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/googletest-installer@v1.1 + - 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 -- cgit v1.2.3