Skip to content

Commit

Permalink
Update build-and-test.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Collins <[email protected]>
  • Loading branch information
benmcollins authored Jan 4, 2025
1 parent a0c8f35 commit 211df0e
Showing 1 changed file with 22 additions and 31 deletions.
53 changes: 22 additions & 31 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Coverage
name: LibJWT Unit Tests, Coverage, and Docs

on:
push:
Expand All @@ -9,49 +9,40 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- uses: ConorMacBride/install-package@v1
with:
brew: gnutls openssl@3 jansson pkgconf cmake doxygen graphviz check

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build

- name: Build
working-directory: ${{github.workspace}}/build
run: make

- name: Unit Tests
working-directory: ${{github.workspace}}/build
run: make check

- name: Documents
working-directory: ${{github.workspace}}/build
run: make doxygen-doc
- name: Build, Test, and Docs
uses: threeal/[email protected]
with:
options: |
WITH_OPENSSL=YES
WITH_GNUTLS=YES
WITH_TESTS=YES
build-args: |
check
doxygen-doc
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: Configure CMake
run: cmake -B ${{github.workspace}}/build -DENABLE_COVERAGE=YES

- name: Build
working-directory: ${{github.workspace}}/build
run: make

- name: Unit Tests
working-directory: ${{github.workspace}}/build
run: make check

- name: Code Coverage
working-directory: ${{github.workspace}}/build
run: make check-code-coverage
- name: Build, Test, and Coverage
uses: threeal/[email protected]
with:
options: |
WITH_OPENSSL=YES
WITH_GNUTLS=YES
WITH_TESTS=YES
ENABLE_COVERAGE=YES
build-args: |
check
check-code-coverage
- uses: codecov/[email protected]
with:
Expand Down

0 comments on commit 211df0e

Please sign in to comment.