Skip to content

Commit

Permalink
Node.js 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ofhouse committed Feb 15, 2021
1 parent ff87a4e commit a364abc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: registry.gitlab.com/dealmore/dealmore-build-images/lambdaci:nodejs12.x
container: registry.gitlab.com/dealmore/dealmore-build-images/lambda:nodejs14.x

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:

test-integration:
runs-on: ubuntu-latest
container: registry.gitlab.com/dealmore/dealmore-build-images/lambdaci:nodejs12.x
container: registry.gitlab.com/dealmore/dealmore-build-images/lambda:nodejs14.x

services:
s3:
Expand Down
2 changes: 1 addition & 1 deletion buildimage.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Since it is intended to run on Amazon Linux we need to install binaries
# for the internally used sharp package that match this distribution

FROM registry.gitlab.com/dealmore/dealmore-build-images/lambdaci:nodejs12.x
FROM amazon/aws-sam-cli-emulation-image-nodejs14.x

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module "image_optimizer" {
function_name = random_id.function_name.hex
description = var.deployment_name
handler = "handler.handler"
runtime = "nodejs12.x"
runtime = "nodejs14.x"
memory_size = var.lambda_memory_size
timeout = var.lambda_timeout
publish = true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test:e2e": "jest --testTimeout=60000 e2e.*"
},
"devDependencies": {
"@dealmore/sammy": "^1.1.0",
"@dealmore/sammy": "^1.3.0",
"@types/jest": "^26.0.20",
"@types/mime": "^2.0.3",
"@types/node": "^12.0.0",
Expand Down
6 changes: 4 additions & 2 deletions test/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { s3PublicDir } from './utils/s3-public-dir';
import { getLocalIpAddressFromHost } from './utils/host-ip-address';
import { acceptAllFixtures } from './constants';

const NODE_RUNTIME = 'nodejs14.x';

describe('[e2e]', () => {
const route = '/_next/image';
const hostIpAddress = getLocalIpAddressFromHost();
Expand Down Expand Up @@ -43,7 +45,7 @@ describe('[e2e]', () => {
imageOptimizer: {
filename: 'dist.zip',
handler: 'handler.handler',
runtime: 'nodejs12.x',
runtime: NODE_RUNTIME,
memorySize: 1024,
route,
method: 'get',
Expand Down Expand Up @@ -166,7 +168,7 @@ describe('[e2e]', () => {
imageOptimizer: {
filename: 'dist.zip',
handler: 'handler.handler',
runtime: 'nodejs12.x',
runtime: NODE_RUNTIME,
memorySize: 1024,
route,
method: 'get',
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,10 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@dealmore/sammy@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@dealmore/sammy/-/sammy-1.1.0.tgz#2ce4622b7872a4d4ab88ebe1769e57941d3506f6"
integrity sha512-LQJ3sTocHMaV6dz5jUaLzZTx7ZNDmDm3cwgN+tYT/A+LX/SDYbBDo8+jprM6bZxvnvHx0WfZBbMseD0ZojU5rg==
"@dealmore/sammy@^1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@dealmore/sammy/-/sammy-1.3.0.tgz#dcc3be6804706679717d9848d28c809cdde92a0e"
integrity sha512-bzthk8faP/PAg5m1lO/VAlqYy+MEIn3AA+oQgXJQPJNQGjtu3zLqVAa69axocD6z5uZzDFZmsoheTP4wynM0+A==
dependencies:
aws-sdk "^2.771.0"
get-port "^5.1.1"
Expand Down

0 comments on commit a364abc

Please sign in to comment.