mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-16 14:17:37 -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>
32 lines
576 B
YAML
32 lines
576 B
YAML
name: Style
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
style:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup cmake
|
|
uses: jwlawson/actions-setup-cmake@v1.13
|
|
with:
|
|
cmake-version: '3.27.x'
|
|
|
|
- name: Install format dependencies
|
|
run: pip3 install clang-format==14.0.6 cmake_format==0.6.11 pyyaml
|
|
|
|
- name: configure
|
|
run: cmake -Stest/style -Bbuild/style
|
|
|
|
- name: check style
|
|
run: cmake --build build/style --target check-format
|