ci: enable tests on github ci

ci: fix path to examples

Update main.yml

chore: get examples then test

chore: disable tests on windows
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index e384343..0201615 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -9,7 +9,6 @@
       matrix:

         # os: [ubuntu-18.04, windows-2019, macos-10.15]

         os: [ubuntu-18.04, windows-2019]

-        # os: [ubuntu-18.04]

         USE_MBEDTLS: ["ON", "OFF"]

         USE_CONTEXT: ["ON", "OFF"]

         CMAKE_OPTIONS:

@@ -69,6 +68,21 @@
         shell: bash

         run: cmake --build .

 

+      - name: get test data

+        if: startsWith(matrix.os, 'ubuntu')

+        working-directory: ${{runner.workspace}}

+        shell: bash

+        run: |

+          cd $GITHUB_WORKSPACE

+          git clone --depth 1 git://github.com/cose-wg/Examples Examples

+

+      - name: Test

+        if: startsWith(matrix.os, 'ubuntu')

+        working-directory: ${{runner.workspace}}/build

+        shell: bash

+        run: |

+          ctest --verbose

+

   clang-tidy:

     runs-on: ${{ matrix.os }}

     strategy: