-
Notifications
You must be signed in to change notification settings - Fork 113
[CI] Add GHA CI and release flow #340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
befcadd
[CI] Add GHA CI and release flow
FranzBusch 0c7f662
Documentation fixes
fabianfett c11a184
More fixes
fabianfett 8e795b7
ignore-unacceptable-language inline
fabianfett 2ef9205
Add `.swiftformat` to `.licenseignore`
fabianfett 146afc3
Add `Dockerfile` to `.licenseignore`
fabianfett ec5af7e
Add SAM templates to `.licenseignore`
fabianfett 166182a
Add `.xcworkspace` to `.licenseignore`
fabianfett afe0e4d
Add `*.xcodeproj` to `.licenseignore`
fabianfett d05e634
Add `*.appiconset` to `.licenseignore`
fabianfett 426aa66
Add `*.xcassets` to `.licenseignore`
fabianfett d7d53f4
Add `ResourcePackaging/hello.txt` to `.licenseignore`
fabianfett 2e00a1a
Drop Swift 5.7 and 5.8
fabianfett 9f9c801
Widen docker-compose files in `.licenseignore`
fabianfett 165d78c
`.licenseignore` all markdown files
fabianfett 5da621d
Disable Swift 5.8 in CI
fabianfett ea1143a
Disable `shell_check`
fabianfett 4277e9a
typo in -Xswiftc w--warnings-as-errors
sebsto 2f3446f
`-warnings-as-errors` needs just one dash
fabianfett fea281e
Fix swift-format
fabianfett 4e6d72d
Apply swift-format
fabianfett 4f27a3b
Readd Swift 5.8
fabianfett 47cf4dc
Ignore Package@swift-* to `.licenseignore`
fabianfett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it on purpose that we reference files from Swift NIO project ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes!