Skip to content

Commit

Permalink
Add step to run unit tests with json library traits
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc authored Sep 23, 2024
1 parent 83703d7 commit e3cf411
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/traits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3cf411

Please sign in to comment.