753d6f0cda
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
29 lines
911 B
YAML
29 lines
911 B
YAML
name: C/C++ CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
name: sysklogd ci
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Update packagage cache ...
|
|
run: sudo apt-get update
|
|
- name: Install build dependencies ...
|
|
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install -qq -y tree tshark
|
|
- uses: actions/checkout@v1
|
|
- name: Generate and run configure script ...
|
|
run: ./autogen.sh && ./configure
|
|
- name: Build project ...
|
|
run: make
|
|
- name: Run project unit tests ...
|
|
run: make check || (cat test/test-suite.log; cat test/start.log; cat test/remote.log; false)
|
|
# - name: clang-tidy check
|
|
# uses: muxee/clang-tidy-action@0.0.1-rc1
|
|
# - name: SonarCloud Scan
|
|
# uses: SonarSource/sonarcloud-github-action@v1.1
|
|
- name: Check project installation ...
|
|
run: make install DESTDIR=/tmp/tok; tree /tmp/tok
|
|
|