fix: add error handling for division by zero #30
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: C/C++ CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install tools | |
run: sudo apt install cmake | |
- name: fetch submodules | |
run: git submodule init && git submodule update | |
- name: build the app | |
run: mkdir build && cd build && cmake .. && cmake --build . | |
- name: run the tests | |
run: ctest --test-dir build/tests -V |