diff options
author | Paul Moore <paul@paul-moore.com> | 2021-08-04 01:07:52 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-08-12 12:30:30 -0400 |
commit | c261232174c8432e12c39e2fc938a64d562de1d6 (patch) | |
tree | 91853117a49751feeb9d0eeb900e0885519fd922 /.github | |
parent | cc8d19b69aaadff2172b04fa37d4995ae63e895a (diff) | |
download | libseccomp-c261232174c8432e12c39e2fc938a64d562de1d6.tar.gz |
github: tweak the GH Actions configuration
This should help leverage the recent code coverage changes as well as
some changes to the test framework. We also add the generated HTML
coverage report to the "codecoverage" artifacts.
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/continuous-integration.yml | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index b253a91..5dcc5e9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -37,7 +37,9 @@ jobs: ./configure --enable-python make check-build - name: Run tests - run: LIBSECCOMP_TSTCFG_STRESSCNT=5 make check + run: | + LIBSECCOMP_TSTCFG_JOBS=0 \ + LIBSECCOMP_TSTCFG_STRESSCNT=5 make check livetests: name: Live Tests @@ -53,7 +55,10 @@ jobs: ./configure --enable-python make check-build - name: Run live tests - run: LIBSECCOMP_TSTCFG_TYPE=live LIBSECCOMP_TSTCFG_MODE_LIST=c make -C tests check + run: | + LIBSECCOMP_TSTCFG_JOBS=0 \ + LIBSECCOMP_TSTCFG_TYPE=live \ + LIBSECCOMP_TSTCFG_MODE_LIST=c make -C tests check scanbuild: name: Scan Build @@ -83,18 +88,19 @@ jobs: ./configure --enable-code-coverage - name: Run tests with code coverage enabled run: | - make test-code-coverage - - name: Gather code coverage results - run: lcov -c --exclude tests --exclude tools --exclude src/arch-syscall-check.c -d . -o lcov.info + LIBSECCOMP_TSTCFG_JOBS=0 \ + make test-code-coverage - name: Upload code coverage results uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./lcov.info + path-to-lcov: ./libseccomp.lcov.info flag-name: "amd64" - name: Archive code coverage results if: ${{ always() }} uses: actions/upload-artifact@v2 with: name: Code Coverage Artifacts - path: lcov.* + path: | + ./libseccomp.lcov.info + ./libseccomp.lcov.html.d |