Skip to content

Remove travis-ci

Remove travis-ci #11

name: Build and Coverage
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ConorMacBride/install-package@v1
with:
brew: gnutls openssl@3 jansson pkgconf cmake check lcov doxygen graphviz
apt: gnutls-dev libssl-dev libjansson-dev pkg-config check lcov doxygen graphviz valgrind
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DENABLE_COVERAGE=YES
- name: Build
working-directory: ${{github.workspace}}/build
run: make
- name: Test
working-directory: ${{github.workspace}}/build
run: make check
- name: Coverage
working-directory: ${{github.workspace}}/build
run: make check-code-coverage
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Memcheck
working-directory: ${{github.workspace}}/build
run: ctest -T memcheck
- name: Documents
working-directory: ${{github.workspace}}/build
run: make doxygen-doc