Skip to content

Commit 2b1e1fe

Browse files
committed
fix ci (#196)
1 parent 9d199fe commit 2b1e1fe

File tree

3 files changed

+33
-25
lines changed

3 files changed

+33
-25
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,43 @@ jobs:
1212
strategy:
1313
matrix:
1414
cfg:
15-
- swift: 5.1
16-
macos: macos-10.15
17-
- swift: 5.2
18-
macos: macos-10.15
19-
- swift: 5.3
20-
macos: macos-10.15
21-
- swift: 5.4
22-
macos: macos-11
2315
- swift: 5.5
24-
macos: macos-11
16+
macos: macos-12
2517
- swift: 5.6
2618
macos: macos-12
2719
- swift: 5.7
2820
macos: macos-12
21+
- swift: ~5.8
22+
macos: macos-14
23+
- swift: ~5.9
24+
macos: macos-14
25+
- swift: ~5.10
26+
macos: macos-14
27+
# - swift: ~6.0
28+
# macos: macos-14
2929
steps:
30-
- uses: actions/checkout@v2
31-
- uses: mxcl/xcodebuild@v1
30+
- uses: actions/checkout@v4
31+
- uses: mxcl/xcodebuild@v3
3232
with:
3333
swift: ${{ matrix.cfg.swift }}
3434
linux:
35-
runs-on: ubuntu-latest
35+
runs-on: ubuntu-20.04
3636
strategy:
3737
matrix:
3838
swift:
39-
- 5.1
40-
- 5.2
41-
- 5.3
42-
- 5.4
43-
- 5.5
44-
- 5.6
45-
- 5.7
46-
container:
47-
image: swift:${{ matrix.swift }}
39+
# - 5.1.5 # requires ubuntu 18.04
40+
- 5.2.5
41+
- 5.3.3
42+
- 5.4.3
43+
- 5.5.3
44+
- 5.6.3
45+
- 5.7.3
46+
- 5.8.1
47+
- 5.9.2
48+
- 5.10.1
4849
steps:
49-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v4
51+
- uses: YOCKOW/Action-setup-swift@v1
52+
with:
53+
swift-version: ${{ matrix.swift }}
5054
- run: swift test -Xswiftc -suppress-warnings --enable-test-discovery

Tests/All/ImportSpecificationUnitTests.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class ImportSpecificationUnitTests: XCTestCase {
146146
XCTAssertEqual(b?.importName, "Bar")
147147
XCTAssertEqual(b?.packageLine, ".package(path: \"\(tmpPath.string)\")")
148148
}
149-
149+
150150
func testCanProvideLocalPathWithSpacesAndRelativeParentsUpTwo() throws {
151151
let tmpPath = Path.root.tmp.fake.fakechild1.fakechild2/"../.."/"with space"/"last"
152152
try tmpPath.mkdir(.p)
@@ -178,7 +178,7 @@ class ImportSpecificationUnitTests: XCTestCase {
178178
XCTAssertEqual(b?.importName, "Bar")
179179
XCTAssertEqual(b?.dependencyName.urlString, url)
180180
}
181-
181+
182182
func testCanProvideCommonSSHURLStyle() throws {
183183
let uri = "[email protected]:MariusCiocanel/Path.swift.git"
184184
let b = try parse("import Path // \(uri) ~> 1.0", from: .path(Path.cwd.join("script.swift")))
@@ -187,7 +187,7 @@ class ImportSpecificationUnitTests: XCTestCase {
187187
XCTAssertEqual(b?.importName, "Path")
188188
XCTAssertEqual(b?.dependencyName.urlString, "[email protected]:MariusCiocanel/Path.swift.git")
189189
}
190-
190+
191191
func testCanProvideCommonSSHURLStyleWithHyphen() throws {
192192
let uri = "[email protected]:MariusCiocanel/swift-sh.git"
193193
let b = try parse("import Bar // \(uri) ~> 1.0", from: .path(Path.cwd.join("script.swift")))
@@ -234,6 +234,8 @@ class ImportSpecificationUnitTests: XCTestCase {
234234
#if swift(>=5) || compiler(>=5.0)
235235
#if compiler(>=6.0)
236236
let expected = "6.0"
237+
#elseif compiler(>=5.10)
238+
let expected = "5.10"
237239
#elseif compiler(>=5.9)
238240
let expected = "5.9"
239241
#elseif compiler(>=5.8)

Tests/All/IntegrationTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ class TestingTheTests: XCTestCase {
512512
XCTAssertEqual(expected, exec: """
513513
#if swift(>=6.0)
514514
print(6.0)
515+
#elseif swift(>=5.10)
516+
print("5.10")
515517
#elseif swift(>=5.9)
516518
print(5.9)
517519
#elseif swift(>=5.8)

0 commit comments

Comments
 (0)