GithubHelp home page GithubHelp logo

cpp-test-action's Introduction

arduino/cpp-test-action

Validate Spell Check

A GitHub Actions action for testing C/C++ projects:

  • Use CMake to build tests
  • Use Valgrind to check for memory leaks
  • Use LCOV/GCOV to generate code coverage data and display a report in the log

Inputs

source-path

Path containing the CMakeLists.txt for the tests.

Default: extras/test

build-path

The top-level directory for build output.

Default: extras/test/build

runtime-paths

YAML format list of paths to runtime binaries generated by building the tests.

Default: "- extras/test/build/bin/unit-test-binary"

coverage-exclude-paths

YAML format list of paths to remove from coverage data.

Default:

- '*/extras/test/*'
- '/usr/*'
- '*/src/lib/*'

coverage-data-path

Path to save the coverage data file to.

Default: extras/test/build/coverage.info

Example usage

on: [pull_request, push]
jobs:
  test:
    runs-on: ubuntu-latest

    env:
      COVERAGE_DATA_PATH: extras/coverage-data/coverage.info

    steps:
      - uses: actions/checkout@v2

      - uses: arduino/cpp-test-action@v1
        with:
          coverage-data-path: ${{ env.COVERAGE_DATA_PATH }}

      # Optional: upload coverage report to codecov.io
      - uses: codecov/codecov-action@v1
        with:
          file: ${{ env.COVERAGE_DATA_PATH }}

cpp-test-action's People

Contributors

aentinger avatar dependabot[bot] avatar per1234 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.