Skip to content
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
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,8 @@ jobs:
action: test
enable-code-coverage: true
- uses: codecov/codecov-action@v1
test-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: skiptools/swift-android-action@v2
8 changes: 8 additions & 0 deletions Tests/A+/XCTestManifests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#if !canImport(ObjectiveC)
import XCTest

#if os(Linux) || os(Android)
extension XCTestExpectation {
func fulfill() {
fulfill(#file, line: #line)
}
}
#endif

extension Test212 {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
Expand Down
3 changes: 3 additions & 0 deletions Tests/CorePromise/LoggingTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
@testable import PromiseKit
import Dispatch
import XCTest
#if canImport(Android)
import Android
#endif

class LoggingTests: XCTestCase {
/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/CorePromise/Utilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extension Promise {
func silenceWarning() {}
}

#if os(Linux)
#if os(Linux) || os(Android)
import func CoreFoundation._CFIsMainThread

extension Thread {
Expand Down