Skip to content

Commit

Permalink
[CI] Enable Linux nightly main on PRs (#137)
Browse files Browse the repository at this point in the history
### Motivation

PR CI was missing testing with nighly Linux toolchains from main.

### Modifications

Enable nightly toolchain CI as well.

### Result

More test coverage on PRs.

### Test Plan

See this PR's CI if this works or if we need more changes.
  • Loading branch information
czechboy0 authored Jan 2, 2025
1 parent 7e80669 commit 23146bc
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
linux_5_10_arguments_override: "--explicit-target-dependency-import-check error"
linux_6_0_arguments_override: "--explicit-target-dependency-import-check error"
linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error"
linux_nightly_main_enabled: false
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"

integration-test:
name: Integration test
Expand Down
1 change: 1 addition & 0 deletions Sources/OpenAPIRuntime/Base/Acceptable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
import Foundation

/// The protocol that all generated `AcceptableContentType` enums conform to.
public protocol AcceptableProtocol: RawRepresentable, Sendable, Hashable, CaseIterable where RawValue == String {}
Expand Down
1 change: 1 addition & 0 deletions Sources/OpenAPIRuntime/Base/ContentDisposition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
import Foundation

/// A parsed representation of the `content-disposition` header described by RFC 6266 containing only
/// the features relevant to OpenAPI multipart bodies.
Expand Down
1 change: 1 addition & 0 deletions Sources/OpenAPIRuntime/Interface/CurrencyTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//

import HTTPTypes
import Foundation

/// A container for request metadata already parsed and validated
/// by the server transport.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
import Foundation

/// A generator of a new boundary string used by multipart messages to separate parts.
public protocol MultipartBoundaryGenerator: Sendable {
Expand Down
4 changes: 2 additions & 2 deletions Tests/OpenAPIRuntimeTests/Base/Test_OpenAPIValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//
import XCTest
#if canImport(Foundation)
@preconcurrency import Foundation
import Foundation
#if canImport(CoreFoundation)
import CoreFoundation
#endif
@_spi(Generated) @testable import OpenAPIRuntime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import XCTest
@_spi(Generated) @testable import OpenAPIRuntime
import Foundation
import HTTPTypes

final class Test_MultipartBytesToFramesSequence: Test_Runtime {
func test() async throws {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import XCTest
@_spi(Generated) @testable import OpenAPIRuntime
import Foundation
import HTTPTypes

final class Test_MultipartFramesToBytesSequence: Test_Runtime {
func test() async throws {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import XCTest
@_spi(Generated) @testable import OpenAPIRuntime
import Foundation
import HTTPTypes

final class Test_MultipartFramesToRawPartsSequence: Test_Runtime {
func test() async throws {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import XCTest
@_spi(Generated) @testable import OpenAPIRuntime
import Foundation
import HTTPTypes

final class Test_MultipartRawPartsToFramesSequence: Test_Runtime {
func test() async throws {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import XCTest
@_spi(Generated) @testable import OpenAPIRuntime
import Foundation
import HTTPTypes

final class Test_MultipartValidationSequence: Test_Runtime {
func test() async throws {
Expand Down

0 comments on commit 23146bc

Please sign in to comment.