Skip to content

Commit

Permalink
Limit testing with valgrind
Browse files Browse the repository at this point in the history
valgrind output is very verbose and it's hard to see the failure.
  • Loading branch information
pkubowicz committed Dec 17, 2023
1 parent d43f893 commit 13ecf24
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,37 @@ jobs:
include:
- os: ubuntu-latest

Check failure on line 11 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / MegaLinter

11:9 [indentation] wrong indentation: expected 10 but found 8
compiler: gcc
valgrind: true
- os: ubuntu-latest
compiler: clang
valgrind: true
- os: ubuntu-20.04
compiler: gcc
valgrind: false
- os: ubuntu-20.04
compiler: clang
valgrind: false

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- name: Setup dependencies
run: sudo apt install flex valgrind libfl-dev
- run: |
run: sudo apt install libfl-dev
- name: Compile
run: |
export CC=${{matrix.compiler}}
$CC --version
make
- name: Test with valgrind
if: ${{ matrix.valgrind == true }}
run: |
sudo apt install valgrind
./test.pl --valgrind
make package
- name: Test without valgrind
if: ${{ matrix.valgrind != true }}
run: |
./test.pl
- name: Test packaging
if: ${{ matrix.valgrind != true }}
run: make package

0 comments on commit 13ecf24

Please sign in to comment.