Skip to content

Commit 7ba793f

Browse files
Merge pull request #2 from swift-serverless/support-alpha.2
Support alpha.2
2 parents 5064df0 + 3285754 commit 7ba793f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/swift-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
image:
21-
- swift:5.7.3-amazonlinux2
21+
- swift:5.10.1
2222
container:
2323
image: ${{ matrix.image }}
2424
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
@@ -29,10 +29,10 @@ jobs:
2929
steps:
3030
# Checkout the repository to the GitHub Actions runner
3131
- name: Checkout
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
- name: Setup
3434
run: |
35-
yum -y update && yum -y install git make curl
35+
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && apt-get -q install -y make curl wget
3636
- name: Test
3737
run: |
3838
make test

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let package = Package(
1616
)
1717
],
1818
dependencies: [
19-
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.1"),
19+
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.2"),
2020
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "0.1.0"),
2121
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.11.2"),
2222
],

Sources/BreezeLambdaWebHook/APIGatewayV2Response+Extensions.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import struct AWSLambdaEvents.APIGatewayV2Response
16-
import struct AWSLambdaEvents.HTTPResponseStatus
16+
import HTTPTypes
1717
import class Foundation.JSONEncoder
1818

1919
public extension APIGatewayV2Response {
@@ -31,7 +31,7 @@ public extension APIGatewayV2Response {
3131
/// - Parameters:
3232
/// - error: Error
3333
/// - statusCode: HTTP Status Code
34-
init(with error: Error, statusCode: AWSLambdaEvents.HTTPResponseStatus) {
34+
init(with error: Error, statusCode: HTTPResponse.Status) {
3535
let bodyError = BodyError(error: String(describing: error))
3636
self.init(with: bodyError, statusCode: statusCode)
3737
}
@@ -40,7 +40,7 @@ public extension APIGatewayV2Response {
4040
/// - Parameters:
4141
/// - object: Encodable Object
4242
/// - statusCode: HTTP Status Code
43-
init<Output: Encodable>(with object: Output, statusCode: AWSLambdaEvents.HTTPResponseStatus) {
43+
init<Output: Encodable>(with object: Output, statusCode: HTTPResponse.Status) {
4444
var body = "{}"
4545
if let data = try? Self.encoder.encode(object) {
4646
body = String(data: data, encoding: .utf8) ?? body

0 commit comments

Comments
 (0)