File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
TestSwiftOrgClient/downloadswiftorgClient Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 3333 uses : actions/checkout@v4
3434 - name : Run OpenAPI Tester
3535 working-directory : openapi/TestSwiftOrgClient
36+ env :
37+ DOWNLOADSWIFTORG_SERVER_NAME : local
3638 run : |
3739 docker build -t swift-org-site ../../.
3840 docker run -p 4000:4000 -d --name website swift-org-site
39- swift run
41+ swift run swiftorgClient
42+ swift run downloadswiftorgClient
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import Shared
1818
1919enum DownloadSwiftOrgServerName : String {
2020 case prod
21+ case local
2122}
2223
2324@main
@@ -31,6 +32,8 @@ struct Tool {
3132 switch serverName {
3233 case . prod:
3334 serverURL = try Servers . Server1. url ( )
35+ case . local:
36+ serverURL = try Servers . Server2. url ( )
3437 }
3538 } else {
3639 serverURL = try Servers . Server1. url ( )
Original file line number Diff line number Diff line change 66servers :
77 - url : https://download.swift.org
88 description : The production server.
9+ - url : http://127.0.0.1:4000/api/v1
10+ description : A local deployment.
911tags :
1012 - name : Evolution
1113 description : Information about the Swift evolution process.
You can’t perform that action at this time.
0 commit comments