From ea732bd0fed46796049f5ca796c0f2b08758b20b Mon Sep 17 00:00:00 2001 From: Liam Bindle Date: Fri, 4 Jun 2021 17:57:05 -0600 Subject: [PATCH] added simple CI test --- .github/workflows/ci-tests.yml | 25 +++++++++++++++++++++++++ makefile | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/ci-tests.yml diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml new file mode 100644 index 0000000..fe8bf38 --- /dev/null +++ b/.github/workflows/ci-tests.yml @@ -0,0 +1,25 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v2 + - name: Install cmocka + run: | + sudo apt-get update + sudo apt-get install libcmocka-dev + - name: make + run: make + - name: make check + run: make check diff --git a/makefile b/makefile index cbce5e3..2b0dd47 100644 --- a/makefile +++ b/makefile @@ -29,3 +29,6 @@ $(MQTT_C_UNITTESTS): tests.c $(MQTT_C_SOURCES) clean: rm -rf $(BINDIR) + +check: all + ./$(MQTT_C_UNITTESTS) \ No newline at end of file