Skip to content

Commit ef3ec8c

Browse files
committed
Run correct CI on the OpenAPI spec
1 parent 4968068 commit ef3ec8c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ jobs:
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

openapi/TestSwiftOrgClient/downloadswiftorgClient/Tool.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import Shared
1818

1919
enum 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()

openapi/downloadswiftorg.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ info:
66
servers:
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.
911
tags:
1012
- name: Evolution
1113
description: Information about the Swift evolution process.

0 commit comments

Comments
 (0)