Skip to content

Set policy CMP0144 to OLD to suppress warning in cmake 3.27 and later #1

Set policy CMP0144 to OLD to suppress warning in cmake 3.27 and later

Set policy CMP0144 to OLD to suppress warning in cmake 3.27 and later #1

Workflow file for this run

# SPDX-FileCopyrightText: 2023 SAP SE
#
# SPDX-License-Identifier: Apache-2.0
#
# This file is part of FEDEM - https://openfedem.org
name: Unit testing
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-and-test:
name: Build and execute unit tests
runs-on: ubuntu-latest
steps:
- name: Install googletest
uses: Bacondish2023/setup-googletest@v1
- name: Check out source repository
uses: actions/checkout@v3
- name: Configure cmake
run: GTEST_ROOT=/usr/local cmake -B ./build -DCMAKE_BUILD_TYPE=Release
- name: Build and execute tests
run: cmake --build ./build --target check