Skip to content

Commit

Permalink
Add codecov upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Apr 11, 2024
1 parent d400fa9 commit 970e46e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Run Tests
run: xcodebuild test -scheme SwiftAudioEx ${{ matrix.destination }} -enableCodeCoverage YES -test-iterations 5 -retry-tests-on-failure CI=true
run: xcodebuild test -scheme SwiftAudioEx ${{ matrix.destination }} -enableCodeCoverage YES
- name: Upload coverage to Codecov
uses: codecov/[email protected]
8 changes: 2 additions & 6 deletions Tests/SwiftAudioExTests/Utils/Helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ import XCTest
extension XCTestCase {
var defaultTimeout: TimeInterval {
if ProcessInfo.processInfo.environment["CI"] != nil {
return 10 // Timeout for CI environment
return 10
} else {
#if os(iOS)
return 20
#else
return 10 // Default timeout for local environment
#endif
return 5
}
}

Expand Down

0 comments on commit 970e46e

Please sign in to comment.