Skip to content

Commit

Permalink
github: also run 'make check' as root (#321)
Browse files Browse the repository at this point in the history
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) <matttbe@kernel.org>
  • Loading branch information
matttbe authored Feb 10, 2025
1 parent e269bbc commit ce7bced
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
run: make -j$(nproc)
- name: make check
run: make check || { cat tests/test-suite.log; exit 1; }
- name: sudo make check
run: sudo make check || { cat tests/test-suite.log; exit 1; }
- name: make distcheck
run: make distcheck
- name: make install
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ jobs:
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 }}
file: ./lcov.info
files: ./lcov.info ./lcov-sudo.info
2 changes: 2 additions & 0 deletions .github/workflows/ell-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ jobs:
run: make -j$(nproc)
- name: make check
run: make check || { cat tests/test-suite.log; exit 1; }
- name: sudo make check
run: sudo make check || { cat tests/test-suite.log; exit 1; }
2 changes: 2 additions & 0 deletions .github/workflows/ell-min.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ jobs:
run: make -j$(nproc)
- name: make check
run: make check || { cat tests/test-suite.log; exit 1; }
- name: sudo make check
run: sudo make check || { cat tests/test-suite.log; exit 1; }

0 comments on commit ce7bced

Please sign in to comment.