diff --git a/.github/workflows/on-push.yaml b/.github/workflows/on-push.yaml index 232315f..02a310b 100644 --- a/.github/workflows/on-push.yaml +++ b/.github/workflows/on-push.yaml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] # macos-latest is too slow - node-version: [18.x, 16.x, 14.x] + node-version: [20.x, 18.x, 16.x, 14.x] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/on-release.yaml b/.github/workflows/on-release.yaml index b85f33e..9de85f4 100644 --- a/.github/workflows/on-release.yaml +++ b/.github/workflows/on-release.yaml @@ -10,7 +10,7 @@ jobs: # Setup .npmrc file to publish to npm - uses: actions/setup-node@v1 with: - node-version: '18.x' + node-version: '20.x' # Needs to be explicitly specified for auth to work registry-url: 'https://registry.npmjs.org' - run: npm ci diff --git a/README.md b/README.md index 620907a..5503d2d 100644 --- a/README.md +++ b/README.md @@ -258,7 +258,7 @@ The permissions can also be added to all lambdas using setting the role to `IamR ```yaml provider: name: aws - runtime: nodejs18.x + runtime: nodejs20.x iamRoleStatements: - Effect: 'Allow' Action: diff --git a/src/warmer.js b/src/warmer.js index 6f0fade..2be8988 100644 --- a/src/warmer.js +++ b/src/warmer.js @@ -220,7 +220,7 @@ function addWarmUpFunctionToService(service, warmerName, warmerConfig) { memorySize: warmerConfig.memorySize, name: warmerConfig.name, ...(warmerConfig.architecture ? { architecture: warmerConfig.architecture } : {}), - runtime: 'nodejs18.x', + runtime: 'nodejs20.x', package: warmerConfig.package, timeout: warmerConfig.timeout, ...(Object.keys(warmerConfig.environment).length diff --git a/test/utils/configUtils.js b/test/utils/configUtils.js index 9cddfc4..fe80a48 100644 --- a/test/utils/configUtils.js +++ b/test/utils/configUtils.js @@ -78,7 +78,7 @@ function getExpectedFunctionConfig(options = {}) { handler: `.warmup/${warmerName}/index.warmUp`, memorySize: 128, name: `warmup-test-dev-warmup-plugin-${warmerName}`, - runtime: 'nodejs18.x', + runtime: 'nodejs20.x', package: { individually: true, patterns: ['!**', path.join('.warmup', warmerName, '**')],