add node20 lambda support
This commit is contained in:
parent
d63a8efc0d
commit
b6817b6bac
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 20.x
|
||||||
|
|
||||||
- name: Install Packages
|
- name: Install Packages
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
@ -45,6 +45,7 @@ jobs:
|
||||||
version:
|
version:
|
||||||
- 16
|
- 16
|
||||||
- 18
|
- 18
|
||||||
|
- 20
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 20.x
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -8,7 +8,7 @@ pretest:
|
||||||
npm install --prefix _/amazon/handlers puppeteer-core@latest --bin-links=false --fund=false --omit=optional --omit=dev --package-lock=false --save=false
|
npm install --prefix _/amazon/handlers puppeteer-core@latest --bin-links=false --fund=false --omit=optional --omit=dev --package-lock=false --save=false
|
||||||
|
|
||||||
test:
|
test:
|
||||||
sam local invoke --template _/amazon/template.yml --event _/amazon/events/example.com.json node18
|
sam local invoke --template _/amazon/template.yml --event _/amazon/events/example.com.json node20
|
||||||
|
|
||||||
.fonts.zip:
|
.fonts.zip:
|
||||||
zip -9 --filesync --move --recurse-paths .fonts.zip .fonts/
|
zip -9 --filesync --move --recurse-paths .fonts.zip .fonts/
|
||||||
|
|
|
||||||
|
|
@ -37,3 +37,14 @@ Resources:
|
||||||
- AWSLambdaBasicExecutionRole
|
- AWSLambdaBasicExecutionRole
|
||||||
- AWSXRayDaemonWriteAccess
|
- AWSXRayDaemonWriteAccess
|
||||||
Tracing: Active
|
Tracing: Active
|
||||||
|
node20:
|
||||||
|
Type: AWS::Serverless::Function
|
||||||
|
Properties:
|
||||||
|
Layers:
|
||||||
|
- !Ref layer
|
||||||
|
Handler: handlers/index.handler
|
||||||
|
Runtime: nodejs20.x
|
||||||
|
Policies:
|
||||||
|
- AWSLambdaBasicExecutionRole
|
||||||
|
- AWSXRayDaemonWriteAccess
|
||||||
|
Tracing: Active
|
||||||
|
|
|
||||||
BIN
bin/aws.tar.br
BIN
bin/aws.tar.br
Binary file not shown.
Loading…
Reference in New Issue