Skip to content

coverage: Rework some issues and add checks #58

coverage: Rework some issues and add checks

coverage: Rework some issues and add checks #58

name: LibJWT Build, Unit Tests, and Coverage
on:
workflow_dispatch:
push:
branches: [ "master" ]
paths-ignore:
- "doxygen/**"
- ".github/**"
- "images/**"
pull_request:
branches: [ "master" ]
paths-ignore:
- "doxygen/**"
- ".github/**"
- "images/**"
jobs:
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: ConorMacBride/install-package@v1
with:
brew: gnutls openssl@3 jansson pkgconf cmake check
- name: Build and Test
uses: threeal/[email protected]
with:
options: |
WITH_TESTS=YES
build-args: |
--
check
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ConorMacBride/install-package@v1
with:
apt: gnutls-dev libssl-dev libjansson-dev pkg-config check lcov valgrind
- name: Build, Test, and Coverage
uses: threeal/[email protected]
with:
options: |
ENABLE_COVERAGE=YES
build-args: |
--
check
check-code-coverage
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{github.workspace}}/build/check-code-coverage.info
disable_search: true
verbose: true
- name: Memcheck
working-directory: ${{github.workspace}}/build
run: ctest -T memcheck