Skip to content

tests: commands: only use one subtest (#322) #409

tests: commands: only use one subtest (#322)

tests: commands: only use one subtest (#322) #409

Workflow file for this run

name: Coverage
on: ["push", "pull_request"]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: dependencies
run: sudo apt-get -y install autoconf-archive lcov git libell-dev
- name: bootstrap
run: ./bootstrap
- name: configure
run: ./configure --enable-code-coverage
- name: make
run: make -j$(nproc)
- name: make check
run: make check-code-coverage \
CODE_COVERAGE_OUTPUT_FILE=lcov.info \
CODE_COVERAGE_LCOV_OPTIONS="--no-external --exclude */tests/*"
- name: sudo make check
run: sudo make check-code-coverage \
CODE_COVERAGE_OUTPUT_FILE=lcov-sudo.info \
CODE_COVERAGE_LCOV_OPTIONS="--no-external --exclude */tests/*"
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
files: ./lcov.info ./lcov-sudo.info