Fix target in test workflow

This commit is contained in:
Davide De Rosa 2022-06-25 20:21:49 +02:00
parent 1543eef3c1
commit 0ff831f021
4 changed files with 5 additions and 3 deletions

View File

@ -68,7 +68,7 @@ jobs:
bundle exec fastlane --env ${{ matrix.platform }} match development bundle exec fastlane --env ${{ matrix.platform }} match development
# - name: Run tests # - name: Run tests
# run: | # run: |
# cd PassepartoutCore # cd PassepartoutLibrary
# swift test # swift test
- name: Build ${{ matrix.name }} app - name: Build ${{ matrix.name }} app
timeout-minutes: 15 timeout-minutes: 15

View File

@ -26,5 +26,5 @@ jobs:
xcode-version: latest-stable xcode-version: latest-stable
- name: Run tests - name: Run tests
run: | run: |
cd PassepartoutCore cd PassepartoutLibrary
swift test swift test

View File

@ -24,6 +24,7 @@
// //
import XCTest import XCTest
import PassepartoutCore
@testable import PassepartoutProfiles @testable import PassepartoutProfiles
import SwiftyBeaver import SwiftyBeaver

View File

@ -26,6 +26,7 @@
import XCTest import XCTest
import CoreData import CoreData
import Combine import Combine
import PassepartoutCore
@testable import PassepartoutProviders @testable import PassepartoutProviders
import PassepartoutServices import PassepartoutServices
import PassepartoutUtils import PassepartoutUtils
@ -44,7 +45,7 @@ class ProvidersTests: XCTestCase {
override func setUp() { override func setUp() {
pp_log.addDestination(ConsoleDestination()) pp_log.addDestination(ConsoleDestination())
manager = ProviderManager( manager = DefaultProviderManager(
appBuild: 10000, appBuild: 10000,
bundleServices: DefaultWebServices.bundledServices(withVersion: "v5"), bundleServices: DefaultWebServices.bundledServices(withVersion: "v5"),
webServices: DefaultWebServices("v5", URL(string: "https://passepartoutvpn.app/api/")!, timeout: nil), webServices: DefaultWebServices("v5", URL(string: "https://passepartoutvpn.app/api/")!, timeout: nil),