Skip to content

Commit

Permalink
added simple CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamBindle committed Jun 4, 2021
1 parent 32b7f2c commit ea732bd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ $(MQTT_C_UNITTESTS): tests.c $(MQTT_C_SOURCES)

clean:
rm -rf $(BINDIR)

check: all
./$(MQTT_C_UNITTESTS)

0 comments on commit ea732bd

Please sign in to comment.