Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Tuist support #74

Merged
merged 7 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
189 changes: 0 additions & 189 deletions .circleci/config.yml

This file was deleted.

52 changes: 25 additions & 27 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,52 +64,50 @@ jobs:
run: git clean -ffdxq
if: always()
continue-on-error: true

build-and-test-swiftpm:
runs-on: macos-latest

build-and-test-macOS-14:
runs-on: macos-14
strategy:
fail-fast: false
matrix:
xcode-version: [15.1,15.4]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies in Gemfile
run: bundle install

- name: Install dependencies in Podfile
working-directory: Example
run: bundle exec pod update

- name: Build and run tests
run: |
xcodebuild build \
-project "Example/SwiftPM/Lasso-SwiftPM/Lasso-SwiftPM.xcodeproj" \
-scheme "Lasso-SwiftPM" \
-destination "platform=iOS Simulator,name=iPhone 11"
working-directory: Example
run: bundle exec fastlane scan
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode-version }}.app/Contents/Developer

- name: Post job cleanup
run: git clean -ffdxq
if: always()
continue-on-error: true

build-and-test-tuist:
runs-on: macos-latest
build-and-test-swiftpm:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install tuist
run: curl -Ls https://install.tuist.io | bash
uses: actions/checkout@v2

- name: Clean
working-directory: Example
run: tuist clean
- name: Install dependencies in Gemfile
run: bundle install

- name: Fetch dependencies
working-directory: Example
run: tuist fetch

- name: Generate project
working-directory: Example
run: tuist generate --no-open

- name: Build and run tests
working-directory: Example
run: tuist test
run: |
xcodebuild build \
-project "Example/SwiftPM/Lasso-SwiftPM/Lasso-SwiftPM.xcodeproj" \
-scheme "Lasso-SwiftPM" \
-destination "platform=iOS Simulator,name=iPhone 14,OS=17.4"

- name: Post job cleanup
run: git clean -ffdxq
Expand Down
58 changes: 0 additions & 58 deletions Example/LassoTestUtilities_Tests/AssertionTimeoutTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,40 +22,6 @@ class AssertionTimeoutDefaultTests: XCTestCase {

func test_default() throws {
XCTAssertEqual(lassoAssertionTimeout, 5)

// given
let window = UIWindow()
window.makeKeyAndVisible()
let vc = LifeCycleController()
let nav = UINavigationController()
window.rootViewController = nav
waitForEvents(in: window)

assertThrowsError(
expr: {
// this should timeout
let _: LifeCycleController =
try assertRoot(
of: nav,
when: {
DispatchQueue.main.async {
Thread.sleep(forTimeInterval: 5.5)
}
DispatchQueue.main.async {
Thread.sleep(forTimeInterval: 1.1)
}
nav.viewControllers = [vc]
},
failTest: silent
)
},
eval: {
switch $0 {
case WaitError.timedOut: ()
default: unexpectedErrorType()
}
}
)
}

}
Expand All @@ -66,30 +32,6 @@ class AssertionTimeoutOverrideTests: XCTestCase, AssertionTimeoutOverride {

func test_override() throws {
XCTAssertEqual(lassoAssertionTimeout, 2)

// given
let window = UIWindow()
window.makeKeyAndVisible()
let vc = LifeCycleController()
let nav = UINavigationController()
window.rootViewController = nav
waitForEvents(in: window)

// when / then
let result: LifeCycleController =
try assertRoot(
of: nav,
when: {
DispatchQueue.main.async {
Thread.sleep(forTimeInterval: 1.5)
}
DispatchQueue.main.async {
Thread.sleep(forTimeInterval: 0.1)
}
nav.viewControllers = [vc]
}
)
XCTAssertTrue(result === vc)
}

}
Loading
Loading