From 7b7079d0ef44303618f73582fe5199eec867c6cc Mon Sep 17 00:00:00 2001 From: MahdiBM Date: Mon, 28 Oct 2024 15:06:05 +0330 Subject: [PATCH] disable codecov in release build tests --- .github/workflows/tests.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1c46442..447756a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,9 +15,11 @@ jobs: - swift:5.10-noble - swift:6.0-noble - swiftlang/swift:nightly-main-jammy - args: - - "--enable-code-coverage --parallel" - - "-c release -Xswiftc -enable-testing --enable-code-coverage --parallel" + config: + - args: "--enable-code-coverage" + with_codecov: true + - args: "-c release -Xswiftc -enable-testing" + with_codecov: false runs-on: ubuntu-latest @@ -49,9 +51,10 @@ jobs: key: "${{ github.event.repository.name }}-debug-build-${{ matrix.swift-image }}-${{ runner.os }}-${{ hashFiles('./Package.resolved') }}" - name: Run tests - run: swift test ${{ matrix.args }} + run: swift test ${{ matrix.config.args }} --parallel - name: Submit code coverage + if: matrix.config.with_codecov == 'true' uses: vapor/swift-codecov-action@v0.3 with: codecov_token: ${{ secrets.CODECOV_TOKEN }}