Skip to content

Commit 7719f22

Browse files
authored
Update to use Issue Reporting (#104)
* Update to use Issue Reporting * wip * wip
1 parent 4f13966 commit 7719f22

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ on:
1111

1212
jobs:
1313
macos_tests:
14-
runs-on: macos-12
14+
runs-on: macos-14
1515
strategy:
1616
matrix:
1717
xcode:
18-
- "14.2" # Swift 5.7.2
18+
- "15.4"
1919
command:
2020
- test
2121
- benchmarks
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Select Xcode ${{ matrix.xcode }}
2525
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
2626
- name: System
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737

3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040
- name: Build
4141
run: swift build
4242
- name: Run tests

Package.resolved

+19-10
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@
2323
"kind" : "remoteSourceControl",
2424
"location" : "https://github.com/pointfreeco/swift-case-paths",
2525
"state" : {
26-
"revision" : "5da6989aae464f324eef5c5b52bdb7974725ab81",
27-
"version" : "1.0.0"
26+
"revision" : "031704ba0634b45e02fe875b8ddddc7f30a07f49",
27+
"version" : "1.5.3"
2828
}
2929
},
3030
{
3131
"identity" : "swift-collections",
3232
"kind" : "remoteSourceControl",
3333
"location" : "https://github.com/apple/swift-collections",
3434
"state" : {
35-
"revision" : "937e904258d22af6e447a0b72c0bc67583ef64a2",
36-
"version" : "1.0.4"
35+
"revision" : "3d2dc41a01f9e49d84f0a3925fb858bed64f702d",
36+
"version" : "1.1.2"
3737
}
3838
},
3939
{
4040
"identity" : "swift-docc-plugin",
4141
"kind" : "remoteSourceControl",
4242
"location" : "https://github.com/apple/swift-docc-plugin",
4343
"state" : {
44-
"revision" : "9b1258905c21fc1b97bf03d1b4ca12c4ec4e5fda",
45-
"version" : "1.2.0"
44+
"revision" : "26ac5758409154cc448d7ab82389c520fa8a8247",
45+
"version" : "1.3.0"
4646
}
4747
},
4848
{
@@ -54,6 +54,15 @@
5454
"version" : "1.0.0"
5555
}
5656
},
57+
{
58+
"identity" : "swift-issue-reporting",
59+
"kind" : "remoteSourceControl",
60+
"location" : "https://github.com/pointfreeco/swift-issue-reporting",
61+
"state" : {
62+
"revision" : "926f43898706eaa127db79ac42138e1ad7e85a3f",
63+
"version" : "1.2.0"
64+
}
65+
},
5766
{
5867
"identity" : "swift-parsing",
5968
"kind" : "remoteSourceControl",
@@ -64,12 +73,12 @@
6473
}
6574
},
6675
{
67-
"identity" : "xctest-dynamic-overlay",
76+
"identity" : "swift-syntax",
6877
"kind" : "remoteSourceControl",
69-
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
78+
"location" : "https://github.com/swiftlang/swift-syntax",
7079
"state" : {
71-
"revision" : "302891700c7fa3b92ebde9fe7b42933f8349f3c7",
72-
"version" : "1.0.0"
80+
"revision" : "4c6cc0a3b9e8f14b3ae2307c5ccae4de6167ac2c",
81+
"version" : "600.0.0-prerelease-2024-06-12"
7382
}
7483
}
7584
],

Package.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ let package = Package(
1717
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.5.0"),
1818
.package(url: "https://github.com/apple/swift-collections", from: "1.0.3"),
1919
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
20+
.package(url: "https://github.com/pointfreeco/swift-issue-reporting", from: "1.2.0"),
2021
.package(url: "https://github.com/pointfreeco/swift-parsing", from: "0.13.0"),
21-
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.0.0"),
2222
.package(url: "https://github.com/google/swift-benchmark", from: "0.1.1"),
2323
],
2424
targets: [
2525
.target(
2626
name: "URLRouting",
2727
dependencies: [
28+
.product(name: "IssueReporting", package: "swift-issue-reporting"),
2829
.product(name: "OrderedCollections", package: "swift-collections"),
2930
.product(name: "Parsing", package: "swift-parsing"),
30-
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
3131
]
3232
),
3333
.testTarget(

Sources/URLRouting/Client/Client.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
2+
import IssueReporting
23
import Parsing
3-
import XCTestDynamicOverlay
44

55
#if canImport(FoundationNetworking)
66
import FoundationNetworking
@@ -130,7 +130,7 @@ extension URLRoutingClient {
130130
131131
Use '\(Self.self).override' to supply a default response for this route.
132132
"""
133-
XCTFail(message)
133+
reportIssue(message)
134134
throw UnimplementedEndpoint(message: message)
135135
}
136136
}

0 commit comments

Comments
 (0)