tests: Fix test for systemd unit name datasource (Snoopy reports empty value as "-") #313
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
name: Code QA - Valgrind | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
paths-ignore: | |
- '.github/**' | |
- '.gitignore' | |
- 'ChangeLog' | |
- 'COPYING' | |
- 'configure.scan' | |
- 'packaging/**' | |
- 'dev-tools/**' | |
- '!dev-tools/libexec/get-release-*.sh' | |
- 'doc/**' | |
- 'etc/**' | |
- 'install/**' | |
- 'lib/*/IMPORT.defs' | |
- 'lib/*/LICENSE' | |
- 'README.md' | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- '.github/**' | |
- '.gitignore' | |
- 'ChangeLog' | |
- 'COPYING' | |
- 'configure.scan' | |
- 'packaging/**' | |
- 'dev-tools/**' | |
- '!dev-tools/libexec/get-release-*.sh' | |
- 'doc/**' | |
- 'etc/**' | |
- 'install/**' | |
- 'lib/*/IMPORT.defs' | |
- 'lib/*/LICENSE' | |
- 'README.md' | |
jobs: | |
code-qa-valgrind: | |
name: Check for memory and fd leaks | |
runs-on: ubuntu-20.04 | |
container: ciready/ubuntu:20.04-ci-c | |
steps: | |
### Fetch the code | |
# | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# Work around the fix for CVE-2022-24765 | |
- run: git config --global --add safe.directory $GITHUB_WORKSPACE || true | |
### Install build environment tools + valgrind | |
# | |
- run: ./dev-tools/install-dev-software.sh | |
- run: DEBIAN_FRONTEND=noninteractive apt-get install -y valgrind | |
### Build | |
# | |
- run: ./bootstrap.sh | |
- run: ./configure --enable-option-checking=fatal --enable-everything | |
- run: make | |
### Run the valgrind verification | |
# | |
- run: make valgrind |