add systemd support #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: install depdencies | |
run: sudo apt install -y meson ninja-build libtss2-dev libjson-c-dev libcmocka-dev libssl-dev | |
- name: meson setup | |
run: meson setup builddir/ | |
- name: meson test | |
run: meson test -C builddir/ -v | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: install depdencies | |
run: sudo apt install -y meson ninja-build libtss2-dev libjson-c-dev libcmocka-dev libssl-dev gcovr lcov | |
- name: meson setup | |
run: meson setup -Db_coverage=true builddir/ | |
- name: meson test | |
run: meson test -C builddir/ -v | |
- name: meson coverage | |
run: ninja coverage -C builddir/ | |
- name: coverage report | |
uses: zgosalvez/github-actions-report-lcov@v1 | |
with: | |
coverage-files: builddir/meson-logs/coverage.info | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |