name: Test on: push: branches: - master pull_request: branches: - master jobs: tests: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] steps: - name: clone uses: actions/checkout@v2 # ruby is required for the integration tests - name: setup ruby uses: ruby/setup-ruby@v1 with: ruby-version: 2.7 - name: unit tests run: | cmake -Htest -Bbuild/test cmake --build build/test --target test-verbose - name: integration tests run: ruby test/integration/runner.rb env: CPM_INTEGRATION_TEST_DIR: ./build/integration