Skip to content

Commit b2d7af4

Browse files
committed
test swift
1 parent 71de6f1 commit b2d7af4

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

guides/swift/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
xcuserdata/
5+
DerivedData/
6+
.swiftpm/configuration/registries.json
7+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
8+
.netrc
9+
Package.resolved

scripts/buildLanguages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function buildLanguage(language: Language, gens: Generator[], buildType: B
6565
break;
6666
case 'swift':
6767
// make this work in the playground
68-
if (buildType === 'client') {
68+
if (buildType !== 'playground') {
6969
await run('swift build -Xswiftc -suppress-warnings', { cwd, language });
7070
}
7171
break;

templates/swift/guides/search/saveObjectsMovies.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Task {
1212

1313
do {
1414
// Save records in Algolia index
15-
_ = try await {{#dynamicSnippet}}saveObjectsMovies{{/dynamicSnippet}}
15+
{{#dynamicSnippet}}saveObjectsMovies{{/dynamicSnippet}}
1616
exit(EXIT_SUCCESS)
1717
} catch {
1818
print(error.localizedDescription)

templates/swift/snippets/Package.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// {{generationBanner}}
21
// swift-tools-version: 5.9
2+
// {{generationBanner}}
33

44
import PackageDescription
55

@@ -30,4 +30,4 @@ let package = Package(
3030
]
3131
)
3232
]
33-
)
33+
)

templates/swift/tests/Package.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// swift-tools-version: 5.9
2+
// {{generationBanner}}
23

34
import PackageDescription
45

@@ -59,4 +60,4 @@ let package = Package(
5960
] + libraries
6061
)
6162
]
62-
)
63+
)

0 commit comments

Comments
 (0)