Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: CD

on:
push:
branches:
branches:
- main
pull_request:
branches:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: lts/*
- name: Install
run: yarn install
- name: Test
Expand All @@ -28,10 +28,10 @@ jobs:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: lts/*
- name: Install
run: yarn install
- name: Typescript build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"functions": 50,
"lines": 100,
"statements": 100
}
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Function, Runtime, Code } from "aws-cdk-lib/aws-lambda";
import { Construct } from "constructs";
import { Code, Function, Runtime } from "aws-cdk-lib/aws-lambda";
import { NodejsFunctionProps } from "aws-cdk-lib/aws-lambda-nodejs";
import { Bucket } from "aws-cdk-lib/aws-s3";
import { Construct } from "constructs";

/**
* NodejsFunction Mock
Expand All @@ -22,7 +22,7 @@ export class NodejsFunction extends Function {
// Create a Lambda Function without the real code generated using Parcel/Docker
super(scope, id, {
// Required values if not set for LambdaFunction
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_LATEST,
handler: "index.handler",
// Use other props
...props,
Expand Down
2 changes: 1 addition & 1 deletion src/tests/localMock.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ it("returns a lambda with default code", () => {
S3Key: "cdk-lambda-nodejs-mock-fake-lambda.ts",
},
Handler: "index.handler",
Runtime: "nodejs12.x",
Runtime: "nodejs22.x",
})
);
});
Loading
Loading