Skip to content

Commit

Permalink
Updating Node engine
Browse files Browse the repository at this point in the history
  • Loading branch information
caparker committed Mar 6, 2024
1 parent 0382372 commit 6a85435
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Use Node.js 12.x
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 20.x

- run: npm install
- run: npm run lint
Expand Down
4 changes: 2 additions & 2 deletions cdk/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class EtlPipeline extends cdk.Stack {
this.prepareNodeModules(props.moduleDir);
const handler = new lambda.Function(this, 'Fetcher', {
description: 'Fetch a single source for a given time period',
runtime: lambda.Runtime.NODEJS_16_X,
runtime: lambda.Runtime.NODEJS_20_X,
handler: 'index.handler',
code: lambda.Code.fromAsset(props.moduleDir),
timeout: cdk.Duration.seconds(900),
Expand Down Expand Up @@ -105,7 +105,7 @@ export class EtlPipeline extends cdk.Stack {
`${interval}Scheduler`,
{
description: `${interval}Scheduler`,
runtime: lambda.Runtime.NODEJS_16_X,
runtime: lambda.Runtime.NODEJS_20_X,
handler: 'index.handler',
code: lambda.Code.fromAsset(props.moduleDir),
timeout: cdk.Duration.seconds(25),
Expand Down

0 comments on commit 6a85435

Please sign in to comment.