mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-18 07:07:47 -05:00
37 lines
731 B
YAML
37 lines
731 B
YAML
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
|