Skip to content

test: どのブランチでもPush時にテストが走るようにする #305 (#306) #587

test: どのブランチでもPush時にテストが走るようにする #305 (#306)

test: どのブランチでもPush時にテストが走るようにする #305 (#306) #587

Workflow file for this run

name: Testing With CMake and CTest
on:
push:
paths:
- "**/CMakeLists.txt"
- "**.h"
- "**.cpp"
- "**/cmake-test.yml"
- "!platform/**"
workflow_dispatch:
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cmake -S . -B build
cmake --build build
- name: Test
run: |
cd build
ctest --output-on-failure --verbose