Skip to content

Commit 3d58f6f

Browse files
authored
Merge pull request #181 from kadishmal/patch-1
Upgrade the runtime to Node v14
2 parents 28be208 + 686201d commit 3d58f6f

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

packages/cdk-pull-request-approval-rule/src/__tests__/__snapshots__/approval-rule-template-repository-association.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Object {
8888
"Arn",
8989
],
9090
},
91-
"Runtime": "nodejs12.x",
91+
"Runtime": "nodejs14.x",
9292
"Timeout": 900,
9393
},
9494
"Type": "AWS::Lambda::Function",
@@ -231,7 +231,7 @@ Object {
231231
"Arn",
232232
],
233233
},
234-
"Runtime": "nodejs12.x",
234+
"Runtime": "nodejs14.x",
235235
"Timeout": 900,
236236
},
237237
"Type": "AWS::Lambda::Function",

packages/cdk-pull-request-approval-rule/src/approval-rule-template-repository-association.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ApprovalRuleTemplateRepositoryAssociation extends Construct {
2828

2929
const serviceToken = CustomResourceProvider.getOrCreate(this, resourceType, {
3030
codeDirectory: approvalRuleTemplateRepositoryAssociationDir,
31-
runtime: CustomResourceProviderRuntime.NODEJS_12,
31+
runtime: CustomResourceProviderRuntime.NODEJS_14_X,
3232
policyStatements: [
3333
{
3434
Effect: 'Allow',

packages/cdk-pull-request-check/src/__tests__/__snapshots__/pull-request-check.test.ts.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Object {
2424
"Arn",
2525
],
2626
},
27-
"Runtime": "nodejs12.x",
27+
"Runtime": "nodejs14.x",
2828
},
2929
"Type": "AWS::Lambda::Function",
3030
},
@@ -442,7 +442,7 @@ Object {
442442
"Arn",
443443
],
444444
},
445-
"Runtime": "nodejs12.x",
445+
"Runtime": "nodejs14.x",
446446
},
447447
"Type": "AWS::Lambda::Function",
448448
},
@@ -873,7 +873,7 @@ Object {
873873
"Arn",
874874
],
875875
},
876-
"Runtime": "nodejs12.x",
876+
"Runtime": "nodejs14.x",
877877
},
878878
"Type": "AWS::Lambda::Function",
879879
},
@@ -1304,7 +1304,7 @@ Object {
13041304
"Arn",
13051305
],
13061306
},
1307-
"Runtime": "nodejs12.x",
1307+
"Runtime": "nodejs14.x",
13081308
},
13091309
"Type": "AWS::Lambda::Function",
13101310
},
@@ -1859,7 +1859,7 @@ Object {
18591859
"Arn",
18601860
],
18611861
},
1862-
"Runtime": "nodejs12.x",
1862+
"Runtime": "nodejs14.x",
18631863
},
18641864
"Type": "AWS::Lambda::Function",
18651865
},
@@ -2290,7 +2290,7 @@ Object {
22902290
"Arn",
22912291
],
22922292
},
2293-
"Runtime": "nodejs12.x",
2293+
"Runtime": "nodejs14.x",
22942294
},
22952295
"Type": "AWS::Lambda::Function",
22962296
},
@@ -2638,7 +2638,7 @@ Object {
26382638
"Arn",
26392639
],
26402640
},
2641-
"Runtime": "nodejs12.x",
2641+
"Runtime": "nodejs14.x",
26422642
},
26432643
"Type": "AWS::Lambda::Function",
26442644
},

packages/cdk-pull-request-check/src/pull-request-check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class PullRequestCheck extends Construct {
171171

172172
if (updateApprovalState || postComment) {
173173
this.codeBuildResultFunction = new Function(this, 'CodeBuildResultFunction', {
174-
runtime: Runtime.NODEJS_12_X,
174+
runtime: Runtime.NODEJS_14_X,
175175
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'code-build-result')),
176176
handler: 'index.handler',
177177
environment: {

0 commit comments

Comments
 (0)