forked from swift-server/swift-aws-lambda-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit ab8166a Author: Franz Busch <privat@franz-busch.de> Date: Mon Aug 26 16:36:07 2024 +0200 [CI] Add GHA CI and release flow (swift-server#340) Co-authored-by: Fabian Fett <fabianfett@apple.com> Co-authored-by: Sébastien Stormacq <sebastien.stormacq@gmail.com> Co-authored-by: Mahdi Bahrami <github@mahdibm.com> commit 5ecc24f Author: Andrea Scuderi <andreascuderi@ymail.com> Date: Mon Aug 26 13:00:07 2024 +0200 Add Breeze to projects.md (swift-server#343) authored-by: Andrea Scuderi <andrea.scuderi@ymail.com> commit 8676c89 Author: Sébastien Stormacq <sebastien.stormacq@gmail.com> Date: Mon Aug 26 12:25:41 2024 +0200 apply swiftformat (swift-server#342) * apply swiftformat * update dep on Swift Docc to v1.3.0 * force usage of swift docc plugin 1.3.0 commit 79fa2c2 Author: Alessio Buratti <9006089+Buratti@users.noreply.github.com> Date: Fri Aug 23 18:50:22 2024 +0200 [Draft] Detached tasks (swift-server#334) * First prototype * Fix build * Removes task cancellation swift-server#334 (comment) * Force user to handle errors swift-server#334 (comment) * Remove EventLoop API swift-server#334 (comment) * Make DetachedTaskContainer internal swift-server#334 (comment) swift-server#334 (comment) * Removes @unchecked Sendable swift-server#334 (comment) * Invoke awaitAll() from async context * Fix ambiguous expression type for swift 5.7 * Fix visibility of detachedBackgroundTask * Add swift-doc * Add example usage to readme * Add tests --------- Co-authored-by: Sébastien Stormacq <sebastien.stormacq@gmail.com>
- Loading branch information
Showing
66 changed files
with
1,113 additions
and
760 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
changelog: | ||
categories: | ||
- title: SemVer Major | ||
labels: | ||
- ⚠️ semver/major | ||
- title: SemVer Minor | ||
labels: | ||
- semver/minor | ||
- title: SemVer Patch | ||
labels: | ||
- semver/patch | ||
- title: Other Changes | ||
labels: | ||
- semver/none | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: PR | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
soundness: | ||
name: Soundness | ||
uses: apple/swift-nio/.github/workflows/soundness.yml@main | ||
with: | ||
license_header_check_project_name: "SwiftAWSLambdaRuntime" | ||
shell_check_enabled: false | ||
|
||
unit-tests: | ||
name: Unit tests | ||
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main | ||
with: | ||
linux_5_8_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | ||
linux_5_9_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | ||
linux_5_10_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | ||
linux_nightly_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | ||
linux_nightly_main_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | ||
|
||
swift-6-language-mode: | ||
name: Swift 6 Language Mode | ||
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.gitignore | ||
.licenseignore | ||
.swiftformatignore | ||
.spi.yml | ||
.swift-format | ||
.github/* | ||
*.md | ||
**/*.md | ||
CONTRIBUTORS.txt | ||
LICENSE.txt | ||
NOTICE.txt | ||
Package.swift | ||
Package@swift-*.swift | ||
Package.resolved | ||
**/*.docc/* | ||
**/.gitignore | ||
**/Package.swift | ||
**/Package.resolved | ||
**/docker-compose*.yaml | ||
**/docker/* | ||
**/.dockerignore | ||
**/Dockerfile | ||
**/Makefile | ||
**/*.html | ||
**/*-template.yml | ||
**/*.xcworkspace/* | ||
**/*.xcodeproj/* | ||
**/*.xcassets/* | ||
**/*.appiconset/* | ||
**/ResourcePackaging/hello.txt | ||
.mailmap | ||
.swiftformat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"version" : 1, | ||
"indentation" : { | ||
"spaces" : 4 | ||
}, | ||
"tabWidth" : 4, | ||
"fileScopedDeclarationPrivacy" : { | ||
"accessLevel" : "private" | ||
}, | ||
"spacesAroundRangeFormationOperators" : false, | ||
"indentConditionalCompilationBlocks" : false, | ||
"indentSwitchCaseLabels" : false, | ||
"lineBreakAroundMultilineExpressionChainComponents" : false, | ||
"lineBreakBeforeControlFlowKeywords" : false, | ||
"lineBreakBeforeEachArgument" : true, | ||
"lineBreakBeforeEachGenericRequirement" : true, | ||
"lineLength" : 120, | ||
"maximumBlankLines" : 1, | ||
"respectsExistingLineBreaks" : true, | ||
"prioritizeKeepingFunctionOutputTogether" : true, | ||
"rules" : { | ||
"AllPublicDeclarationsHaveDocumentation" : false, | ||
"AlwaysUseLiteralForEmptyCollectionInit" : false, | ||
"AlwaysUseLowerCamelCase" : false, | ||
"AmbiguousTrailingClosureOverload" : true, | ||
"BeginDocumentationCommentWithOneLineSummary" : false, | ||
"DoNotUseSemicolons" : true, | ||
"DontRepeatTypeInStaticProperties" : true, | ||
"FileScopedDeclarationPrivacy" : true, | ||
"FullyIndirectEnum" : true, | ||
"GroupNumericLiterals" : true, | ||
"IdentifiersMustBeASCII" : true, | ||
"NeverForceUnwrap" : false, | ||
"NeverUseForceTry" : false, | ||
"NeverUseImplicitlyUnwrappedOptionals" : false, | ||
"NoAccessLevelOnExtensionDeclaration" : true, | ||
"NoAssignmentInExpressions" : true, | ||
"NoBlockComments" : true, | ||
"NoCasesWithOnlyFallthrough" : true, | ||
"NoEmptyTrailingClosureParentheses" : true, | ||
"NoLabelsInCasePatterns" : true, | ||
"NoLeadingUnderscores" : false, | ||
"NoParensAroundConditions" : true, | ||
"NoVoidReturnOnFunctionSignature" : true, | ||
"OmitExplicitReturns" : true, | ||
"OneCasePerLine" : true, | ||
"OneVariableDeclarationPerLine" : true, | ||
"OnlyOneTrailingClosureArgument" : true, | ||
"OrderedImports" : true, | ||
"ReplaceForEachWithForLoop" : true, | ||
"ReturnVoidInsteadOfEmptyTuple" : true, | ||
"UseEarlyExits" : false, | ||
"UseExplicitNilCheckInConditions" : false, | ||
"UseLetInEveryBoundCaseVariable" : false, | ||
"UseShorthandTypeNames" : true, | ||
"UseSingleLinePropertyGetter" : false, | ||
"UseSynthesizedInitializer" : false, | ||
"UseTripleSlashForDocumentationComments" : true, | ||
"UseWhereClausesInForLoops" : false, | ||
"ValidateDocumentationComments" : false | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
// swift-tools-version:5.7 | ||
|
||
import class Foundation.ProcessInfo // needed for CI to test the local version of the library | ||
import PackageDescription | ||
|
||
import class Foundation.ProcessInfo // needed for CI to test the local version of the library | ||
|
||
let package = Package( | ||
name: "swift-aws-lambda-runtime-example", | ||
platforms: [ | ||
.macOS(.v12), | ||
.macOS(.v12) | ||
], | ||
products: [ | ||
.executable(name: "MyLambda", targets: ["MyLambda"]), | ||
.executable(name: "MyLambda", targets: ["MyLambda"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha"), | ||
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha") | ||
], | ||
targets: [ | ||
.executableTarget( | ||
name: "MyLambda", | ||
dependencies: [ | ||
.product(name: "AWSLambdaRuntimeCore", package: "swift-aws-lambda-runtime"), | ||
.product(name: "AWSLambdaRuntimeCore", package: "swift-aws-lambda-runtime") | ||
], | ||
path: "." | ||
), | ||
) | ||
] | ||
) | ||
|
||
// for CI to test the local version of the library | ||
if ProcessInfo.processInfo.environment["LAMBDA_USE_LOCAL_DEPS"] != nil { | ||
package.dependencies = [ | ||
.package(name: "swift-aws-lambda-runtime", path: "../.."), | ||
.package(name: "swift-aws-lambda-runtime", path: "../..") | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
// swift-tools-version:5.7 | ||
|
||
import class Foundation.ProcessInfo // needed for CI to test the local version of the library | ||
import PackageDescription | ||
|
||
import class Foundation.ProcessInfo // needed for CI to test the local version of the library | ||
|
||
let package = Package( | ||
name: "swift-aws-lambda-runtime-example", | ||
platforms: [ | ||
.macOS(.v12), | ||
.macOS(.v12) | ||
], | ||
products: [ | ||
.executable(name: "MyLambda", targets: ["MyLambda"]), | ||
.executable(name: "MyLambda", targets: ["MyLambda"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha"), | ||
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha") | ||
], | ||
targets: [ | ||
.executableTarget( | ||
name: "MyLambda", | ||
dependencies: [ | ||
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"), | ||
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime") | ||
], | ||
path: "." | ||
), | ||
) | ||
] | ||
) | ||
|
||
// for CI to test the local version of the library | ||
if ProcessInfo.processInfo.environment["LAMBDA_USE_LOCAL_DEPS"] != nil { | ||
package.dependencies = [ | ||
.package(name: "swift-aws-lambda-runtime", path: "../.."), | ||
.package(name: "swift-aws-lambda-runtime", path: "../..") | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
// swift-tools-version:5.7 | ||
|
||
import class Foundation.ProcessInfo // needed for CI to test the local version of the library | ||
import PackageDescription | ||
|
||
import class Foundation.ProcessInfo // needed for CI to test the local version of the library | ||
|
||
let package = Package( | ||
name: "swift-aws-lambda-runtime-example", | ||
platforms: [ | ||
.macOS(.v12), | ||
.macOS(.v12) | ||
], | ||
products: [ | ||
.executable(name: "MyLambda", targets: ["MyLambda"]), | ||
.executable(name: "MyLambda", targets: ["MyLambda"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha"), | ||
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha") | ||
], | ||
targets: [ | ||
.executableTarget( | ||
name: "MyLambda", | ||
dependencies: [ | ||
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"), | ||
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime") | ||
], | ||
path: "." | ||
), | ||
) | ||
] | ||
) | ||
|
||
// for CI to test the local version of the library | ||
if ProcessInfo.processInfo.environment["LAMBDA_USE_LOCAL_DEPS"] != nil { | ||
package.dependencies = [ | ||
.package(name: "swift-aws-lambda-runtime", path: "../.."), | ||
.package(name: "swift-aws-lambda-runtime", path: "../..") | ||
] | ||
} |
Oops, something went wrong.