From 160d7cf4a7f9554a33710a48d0220aa1c7f4364b Mon Sep 17 00:00:00 2001 From: Denis Feklushkin Date: Thu, 30 Jan 2025 09:28:10 +0300 Subject: [PATCH] Fix coverage run for integration_tests --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b57bb5c..0a75e80b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,7 +86,7 @@ jobs: stat_type: [static, dynamic, dynamic-unmanaged] dc: ${{ fromJSON(needs.setup.outputs.compilers) }} include: - - build: unittest-cov + - build: tests_and_cov dc: dmd-latest stat_type: none steps: @@ -111,19 +111,18 @@ jobs: dub fetch doveralls shell: bash - name: Build / test - if: matrix.build != 'unittest-cov' + if: matrix.build != 'tests_and_cov' run: | dub run dpq2:integration_tests --build=$BUILD --config=$STAT_TYPE -- --conninfo="$CONN_STRING" shell: bash - name: Build / test with coverage - if: matrix.build == 'unittest-cov' + if: matrix.build == 'tests_and_cov' run: | dub run dpq2:integration_tests --build=unittest-cov -- --conninfo="$CONN_STRING" + dub run dpq2:integration_tests --build=cov -- --conninfo="$CONN_STRING" dub run dpq2:example --build=release -- --conninfo="$CONN_STRING" dub run doveralls shell: bash - name: Upload coverage data - if: matrix.build == 'unittest-cov' + if: matrix.build == 'tests_and_cov' uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b - -