Rewriting to BackendAccessor pt 3 #136
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: Nova CD pipeline | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
compiler: [gcc-10] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Pull submodules | |
run: git submodule update --init --recursive | |
- name: Set scripts permissions | |
run: chmod +x ./bin/* | |
- name: Install dependencies | |
run: | | |
./bin/deps.sh | |
- name: Build | |
run: | | |
rm -f build && mkdir build && pushd build && cmake .. -DENABLE_TESTS=ON && make -j`nproc` && popd | |
env: | |
CC: /usr/bin/gcc-10 | |
CXX: /usr/bin/g++-10 | |
- name: Run unit tests | |
run: | | |
pushd build && make test && popd | |
- name: Build with coverage | |
run: | | |
mkdir cov_build && pushd cov_build && cmake .. -DENABLE_TESTS=ON -DENABLE_COVERAGE=ON && make -j`nproc` && popd | |
env: | |
CC: /usr/bin/gcc-10 | |
CXX: /usr/bin/g++-10 | |
- name: Run unit tests on coverage build | |
run: | | |
pushd cov_build && make test && popd | |
- name: Generate unit tests coverage | |
run: | | |
./bin/generate-ut-cov.sh | |
- name: Send raport to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
files: ./coverage.xml |