mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-16 22:27:41 -05:00
* Treat relative paths as relative to parent project's remote * replace unit test case with integration test * run relative URL test only on supported CMake versions (3.27) * omit cmake 2.25.x test runner as replaced by 2.27.x --------- Co-authored-by: Chris Wright <chris.wright@mqa.co.uk> Co-authored-by: Lars Melchior <lars.melchior@gmail.com>
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
# windows-latest is windows-2019 which carries a pretty old version of ruby (2.5)
|
|
# we need at least ruby 2.7 for the tests
|
|
# instead of dealing with installing a modern version of ruby on 2019, we'll just use windows-2022 here
|
|
os: [ubuntu-latest, windows-2022, macos-latest]
|
|
# we want to ensure compatibility with a recent CMake version as well as the lowest officially supported
|
|
# legacy version that we define as the default version of the second-latest Ubuntu LTS release currently available
|
|
cmake_version: ['3.16.3', '3.27.5']
|
|
exclude:
|
|
# there seems to be an issue with CMake 3.16 not finding a C++ compiler on windows-2022
|
|
- os: windows-2022
|
|
cmake_version: '3.16.3'
|
|
|
|
steps:
|
|
- name: clone
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup cmake
|
|
uses: jwlawson/actions-setup-cmake@v1.13
|
|
with:
|
|
cmake-version: ${{ matrix.cmake_version }}
|
|
|
|
- name: unit tests
|
|
run: |
|
|
cmake -Stest -Bbuild/test
|
|
cmake --build build/test --target test-verbose
|
|
env:
|
|
CMAKE_VERSION: ${{ matrix.cmake_version }}
|
|
|
|
- name: integration tests
|
|
run: ruby test/integration/runner.rb
|
|
env:
|
|
CPM_INTEGRATION_TEST_DIR: ./build/integration
|
|
CMAKE_VERSION: ${{ matrix.cmake_version }}
|