Skip to content

Commit ce7bced

Browse files
authored
github: also run 'make check' as root (#321)
Some actions will be restricted to root, check with and without. That will increase a bit the code coverage (~4%). Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
1 parent e269bbc commit ce7bced

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.github/workflows/ccpp.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
run: make -j$(nproc)
2828
- name: make check
2929
run: make check || { cat tests/test-suite.log; exit 1; }
30+
- name: sudo make check
31+
run: sudo make check || { cat tests/test-suite.log; exit 1; }
3032
- name: make distcheck
3133
run: make distcheck
3234
- name: make install

.github/workflows/coverage.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
run: make check-code-coverage \
2222
CODE_COVERAGE_OUTPUT_FILE=lcov.info \
2323
CODE_COVERAGE_LCOV_OPTIONS="--no-external --exclude */tests/*"
24+
- name: sudo make check
25+
run: sudo make check-code-coverage \
26+
CODE_COVERAGE_OUTPUT_FILE=lcov-sudo.info \
27+
CODE_COVERAGE_LCOV_OPTIONS="--no-external --exclude */tests/*"
2428
- name: Coveralls
2529
uses: coverallsapp/github-action@v2
2630
with:
2731
github-token: ${{ secrets.GITHUB_TOKEN }}
28-
file: ./lcov.info
32+
files: ./lcov.info ./lcov-sudo.info

.github/workflows/ell-master.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ jobs:
3737
run: make -j$(nproc)
3838
- name: make check
3939
run: make check || { cat tests/test-suite.log; exit 1; }
40+
- name: sudo make check
41+
run: sudo make check || { cat tests/test-suite.log; exit 1; }

.github/workflows/ell-min.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ jobs:
3535
run: make -j$(nproc)
3636
- name: make check
3737
run: make check || { cat tests/test-suite.log; exit 1; }
38+
- name: sudo make check
39+
run: sudo make check || { cat tests/test-suite.log; exit 1; }

0 commit comments

Comments
 (0)