Skip to content

Commit

Permalink
Merge pull request #5830 from osalyk/add-coverage-build
Browse files Browse the repository at this point in the history
common: add coverage build
  • Loading branch information
janekmi authored Jul 28, 2023
2 parents 8316bf5 + 189a2c7 commit efe7cb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@ jobs:
needs: [src_checkers, basic_build]
uses: ./.github/workflows/ubuntu.yml
name: Ubuntu

coverage_scan:
needs: call-ubuntu
uses: ./.github/workflows/scan_coverage.yml
name: Coverage
10 changes: 1 addition & 9 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,8 @@ jobs:
OS_VER: 22.04
FAULT_INJECTION: 1
strategy:
# Introduced to stop sporadically failing Codecov uploader (COVERAGE=1)
# from stopping all other builds.
fail-fast: false
matrix:
include:
# Note: All coverage scans should be run in the same environment.
# Please see the coverage scan workflow for the reference environment.
- {TEST_BUILD: debug, COVERAGE: 1}
- {TEST_BUILD: nondebug, COVERAGE: 0}
TEST_BUILD: ['debug', 'nondebug']
steps:
- name: Clone the git repo
uses: actions/checkout@v3
Expand All @@ -48,5 +41,4 @@ jobs:
- name: Run the build
env:
TEST_BUILD: ${{ matrix.TEST_BUILD }}
COVERAGE: ${{ matrix.COVERAGE }}
run: cd $WORKDIR && ./build-CI.sh

0 comments on commit efe7cb0

Please sign in to comment.