Update format, remove TimeUtilFactory in api #86
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: Test | |
on: [push, pull_request] | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.6.0 | |
with: | |
access_token: ${{ secrets.DOCS_TOKEN }} | |
- name: Install Dependencies | |
run: | | |
sudo apt install build-essential | |
sudo apt install git | |
sudo apt install cmake | |
sudo apt install clang-format | |
sudo apt install valgrind | |
sudo apt install cppcheck | |
sudo apt install lcov | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
cmake --build . | |
- name: Test | |
working-directory: build | |
run: ./RaidZeroLib | |
- name: Valgrind | |
working-directory: build | |
run: valgrind --tool=memcheck --leak-check=full --leak-resolution=med --show-leak-kinds=all --undef-value-errors=yes --track-origins=yes --error-exitcode=1 --show-reachable=no ./RaidZeroLib | |
- name: Cppcheck | |
working-directory: . | |
run: cppcheck --enable=all --suppress=missingInclude --suppress=unusedFunction --error-exitcode=1 -I include/RaidZeroLib src/RaidZeroLib | |
- name: Formatting Check | |
uses: DoozyX/clang-format-lint-action@v0.16.2 | |
with: | |
clangFormatVersion: 14 | |
style: file | |
source: 'include/RaidZeroLib src/RaidZeroLib test' | |
- name: Collect Coverage | |
working-directory: build | |
run: | | |
lcov --directory . --capture --output-file coverage.info | |
lcov --remove coverage.info '/usr/*' --output-file coverage.info | |
lcov --remove coverage.info '*/RaidZeroLib/build/*' --output-file coverage.info | |
lcov --remove coverage.info '*/RaidZeroLib/include/okapi/*' --output-file coverage.info | |
lcov --remove coverage.info '*/RaidZeroLib/test/include/*' --output-file coverage.info | |
lcov --remove coverage.info '*/RaidZeroLib/test/src/*' --output-file coverage.info | |
lcov --list coverage.info | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
files: ./build/coverage.info |