Skip to content

Commit

Permalink
disable codecov in release build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Oct 28, 2024
1 parent 221c403 commit 7b7079d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 }}

0 comments on commit 7b7079d

Please sign in to comment.