Skip to content

Commit 56a23bf

Browse files
authored
fix(integ tests): enable graceful-shutdown feature flag; chore(ci/cd): build integration test crate as part of PR validation (#988)
* fix(integ tests): enable graceful-shutdown feature flag * chore(ci/cd): build integration test crate as part of PR validation
1 parent a598994 commit 56a23bf

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build integration tests
2+
3+
on:
4+
push:
5+
paths:
6+
- 'lambda-runtime-api-client/**'
7+
- 'lambda-runtime/**'
8+
- 'lambda-http/**'
9+
- 'lambda-extension/**'
10+
- 'Cargo.toml'
11+
12+
pull_request:
13+
paths:
14+
- 'lambda-runtime-api-client/**'
15+
- 'lambda-runtime/**'
16+
- 'lambda-http/**'
17+
- 'lambda-extension/**'
18+
- 'Cargo.toml'
19+
20+
jobs:
21+
build-runtime:
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
toolchain:
26+
- "1.81.0" # Current MSRV
27+
- stable
28+
env:
29+
RUST_BACKTRACE: 1
30+
steps:
31+
- uses: actions/checkout@v3
32+
33+
- name: Build Integration tests
34+
uses: ./.github/actions/rust-build
35+
with:
36+
package: lambda_integration_tests
37+
toolchain: ${{ matrix.toolchain}}

lambda-integration-tests/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ keywords = ["AWS", "Lambda", "API"]
1212
readme = "../README.md"
1313

1414
[dependencies]
15-
lambda_runtime = { path = "../lambda-runtime" }
15+
lambda_runtime = { path = "../lambda-runtime", features = ["tracing", "graceful-shutdown"] }
1616
aws_lambda_events = { path = "../lambda-events" }
1717
serde_json = "1.0.121"
1818
tokio = { version = "1", features = ["full"] }

0 commit comments

Comments
 (0)