Skip to content

Commit

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

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

0 comments on commit 221c403

Please sign in to comment.