From 221c4039aae953e7582ceef7d462590a7f9875ce Mon Sep 17 00:00:00 2001 From: MahdiBM Date: Mon, 28 Oct 2024 14:48:12 +0330 Subject: [PATCH] run tests in release mode as well --- .github/workflows/tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cf5843a..1c46442 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,9 @@ 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" runs-on: ubuntu-latest @@ -46,7 +49,7 @@ jobs: key: "${{ github.event.repository.name }}-debug-build-${{ matrix.swift-image }}-${{ runner.os }}-${{ hashFiles('./Package.resolved') }}" - name: Run tests - run: swift test --enable-code-coverage --parallel + run: swift test ${{ matrix.args }} - name: Submit code coverage uses: vapor/swift-codecov-action@v0.3