From e3cf4116936fb7c46d71f3d6aa598ac6afccc2dc Mon Sep 17 00:00:00 2001 From: Chris Mc Date: Mon, 23 Sep 2024 15:38:16 -0700 Subject: [PATCH 1/2] Add step to run unit tests with json library traits --- .github/workflows/traits.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/traits.yml b/.github/workflows/traits.yml index ef51060f9..3ec1f6022 100644 --- a/.github/workflows/traits.yml +++ b/.github/workflows/traits.yml @@ -56,13 +56,21 @@ jobs: with: version: ${{matrix.target.tag}} - - name: test + - name: test example working-directory: example/traits run: | cmake . -DCMAKE_FIND_DEBUG_MODE=1 cmake --build . --target ${{ matrix.target.name }} ./${{ matrix.target.name }} + - name: test unit + run: | + mkdir build_unit + cd build_unit + cmake .. -DJWT_BUILD_TESTS=ON + cmake --build . --target jwt-cpp-test + ./jwt-cpp-test + - name: badge success if: github.event_name == 'push' && success() uses: ./.github/actions/badge/write From a5de39a9d068b9dd8bc6757e7d696f81ff9a416a Mon Sep 17 00:00:00 2001 From: Chris Mc Date: Mon, 23 Sep 2024 15:42:46 -0700 Subject: [PATCH 2/2] Update .github/workflows/traits.yml --- .github/workflows/traits.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/traits.yml b/.github/workflows/traits.yml index 3ec1f6022..74bbbcc7e 100644 --- a/.github/workflows/traits.yml +++ b/.github/workflows/traits.yml @@ -69,7 +69,7 @@ jobs: cd build_unit cmake .. -DJWT_BUILD_TESTS=ON cmake --build . --target jwt-cpp-test - ./jwt-cpp-test + ./tests/jwt-cpp-test - name: badge success if: github.event_name == 'push' && success()