sysklogd/.github/workflows/ccpp.yml

29 lines
847 B
YAML
Raw Normal View History

name: C/C++ CI
on: [push]
jobs:
build:
2019-12-16 15:28:39 +05:30
name: sysklogd ci
runs-on: ubuntu-latest
steps:
2019-12-16 15:38:57 +05:30
- name: Install build dependencies ...
run:
- sudo apt-get update
- sudo apt-get -y install tree tshark
2019-12-16 15:28:39 +05:30
- uses: actions/checkout@v1
2019-12-16 15:38:57 +05:30
- name: Generate and run configure script ...
2019-12-16 15:28:39 +05:30
run: ./autogen.sh && ./configure
2019-12-16 15:38:57 +05:30
- name: Build project ...
2019-12-16 15:28:39 +05:30
run: make
2019-12-16 15:38:57 +05:30
- name: Run project unit tests ...
2019-12-16 15:28:39 +05:30
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
2019-12-16 15:38:57 +05:30
- name: Check project installation ...
2019-12-16 15:28:39 +05:30
run: make install DESTDIR=/tmp/tok; tree /tmp/tok