Additional test cases for wdmp #10
Workflow file for this run
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
# SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC | |
# SPDX-License-Identifier: Apache-2.0 | |
name: CI | |
on: | |
pull_request: | |
push: | |
paths-ignore: | |
- 'AUTHORS' | |
- 'LICENSE' | |
- 'NOTICE' | |
- '**.md' | |
- '.gitignore' | |
tags-ignore: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
branches: | |
- master | |
jobs: | |
test: | |
name: Unit Tests | |
runs-on: [ ubuntu-latest ] | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# Install the dependent packages | |
- name: Install packages | |
run: | | |
sudo apt update | |
sudo apt-get -y install valgrind libcunit1 libcunit1-doc libcunit1-dev gcovr libtool xsltproc docbook-xsl | |
pip install codecov | |
- name: Make Build Directory | |
run: mkdir build | |
- name: Get Sonarcloud Binaries | |
uses: xmidt-org/sonarcloud-installer-action@v1 | |
with: | |
working-directory: build | |
- name: CMake | |
working-directory: build | |
run: | | |
cmake .. -DDISABLE_VALGRIND:BOOL=${DISABLE_VALGRIND} | |
- name: Unit tests run | |
working-directory: build | |
run: | | |
build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output make all test | |
- name: Merge GCOV Reports for Sonarcloud | |
working-directory: build | |
run: | | |
gcovr --sonarqube coverage.xml -r .. | |
- name: Upload Codecov.io | |
uses: codecov/codecov-action@v1 | |
with: | |
directory: . | |
fail_ci_if_error: true | |
# - name: Upload SonarCloud | |
# run: | | |
# build/sonar-scanner/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dproject.settings=.sonar-project.properties -Dsonar.login=${{ secrets.SONAR_TOKEN }} | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |