Skip to content

Commit 856e673

Browse files
ci: Creates main to help debugging
1 parent a98c185 commit 856e673

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- name: Build and test
1818
run: |
19-
swift test \
20-
--skip testDoNotModifyBuiltInTypesAnDirectives \
21-
--skip testExtends
19+
swift run DeleteMe

Package.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ let package = Package(
1717
.product(name: "OrderedCollections", package: "swift-collections"),
1818
]
1919
),
20+
.target(
21+
name: "DeleteMe",
22+
dependencies: ["GraphQL"]
23+
),
2024
.testTarget(
2125
name: "GraphQLTests",
2226
dependencies: ["GraphQL"],

Sources/DeleteMe/main.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import Foundation
2+
import GraphQL
3+
4+
let schema = try buildSchema(source: """
5+
type Query {
6+
str: String
7+
int: Int
8+
float: Float
9+
id: ID
10+
bool: Boolean
11+
}
12+
""")
13+
print("schema")
14+
let extendAST = try parse(source: """
15+
extend type Query {
16+
foo: String
17+
}
18+
""")
19+
print("extendAST")
20+
let extendedSchema = try extendSchema(schema: schema, documentAST: extendAST)
21+
print("extendSchema")

0 commit comments

Comments
 (0)