diff --git a/.github/workflows/traits.yml b/.github/workflows/traits.yml index ef51060f..74bbbcc7 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 + ./tests/jwt-cpp-test + - name: badge success if: github.event_name == 'push' && success() uses: ./.github/actions/badge/write