check if the network is not empty before trying to access a node #258
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Tests on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-24.04, windows-2022, macos-14] | |
steps: | |
- name: Install Pre-requisits on ubuntu | |
if: ${{ startsWith(matrix.os, 'ubuntu') }} | |
run: | | |
sudo apt-get -qy update | |
sudo apt-get install g++ ninja-build cmake | |
ninja --version | |
cmake --version | |
g++ --version | |
- name: Install dependencies on windows | |
if: ${{ startsWith(matrix.os, 'windows') }} | |
run: | | |
choco install ninja cmake | |
cmake --version | |
- name: select Xcode version | |
if: ${{ startsWith(matrix.os, 'macos') }} | |
run: | | |
sudo xcode-select -s "/Applications/Xcode_14.3.app" | |
- uses: actions/checkout@v4 | |
- name: cmake build | |
run: | | |
mkdir build | |
cmake -Bbuild -S. | |
cmake --build build/ --target reticula_tests -j 2 --verbose | |
- name: Run tests | |
working-directory: build | |
run: ctest -C Debug --output-on-failure -j 2 |