Code cleanups for jwtgen tool #66
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: LibJWT Build, Unit Tests, and Coverage | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "master" ] | |
paths-ignore: | |
- "doxygen/**" | |
- ".github/**" | |
- "images/**" | |
- ".gitignore" | |
- "*.md" | |
pull_request: | |
branches: [ "master" ] | |
paths-ignore: | |
- "doxygen/**" | |
- ".github/**" | |
- "images/**" | |
- ".gitignore" | |
- "*.md" | |
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 | |
WITH_EXAMPLES=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 | |
WITH_EXAMPLES=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 |