From: Stephen Seo Date: Wed, 17 Jan 2024 10:22:20 +0000 (+0900) Subject: Add github action to run UnitTests X-Git-Tag: 1.0~7 X-Git-Url: https://git.seodisparate.com/stephenseo/static/search/searchdata.js?a=commitdiff_plain;h=599ebca19644d1624af75bdc27d769dcfd5d9200;p=EntityComponentMetaSystem Add github action to run UnitTests --- diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml new file mode 100644 index 0000000..977425c --- /dev/null +++ b/.github/workflows/unittests.yml @@ -0,0 +1,18 @@ +name: Run UnitTests +on: + push: + branches: + - '*' + +jobs: + build-and-run-unittests: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: sudo /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get install libgtest-dev cmake + - name: Get sources + run: git clone --depth=1 --no-single-branch https://github.com/Stephen-Seo/EntityComponentMetaSystem.git ECMS && cd ECMS && git checkout $GITHUB_REF_NAME + - name: Build UnitTests + run: cd ECMS && cmake -S src -B buildDebug -DCMAKE_BUILD_TYPE=Debug && make -C buildDebug + - name: Run UnitTests + run: ./ECMS/buildDebug/UnitTests