Skip to content

Commit

Permalink
feat: support nodejs:20 kind (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron authored Nov 1, 2023
1 parent 2a26404 commit aed770b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const globby = require('globby')
const path = require('path')
const archiver = require('archiver')
// this is a static list that comes from here: https://developer.adobe.com/runtime/docs/guides/reference/runtimes/
const SupportedRuntimes = ['sequence', 'nodejs:10', 'nodejs:12', 'nodejs:14', 'nodejs:16', 'nodejs:18']
const SupportedRuntimes = ['sequence', 'nodejs:10', 'nodejs:12', 'nodejs:14', 'nodejs:16', 'nodejs:18', 'nodejs:20']
const DEFAULT_PACKAGE_RESERVED_NAME = 'default'

/**
Expand Down
1 change: 1 addition & 0 deletions test/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2228,6 +2228,7 @@ describe('validateActionRuntime', () => {
expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:14' } })).not.toThrow()
expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:16' } })).not.toThrow()
expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:18' } })).not.toThrow()
expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:20' } })).not.toThrow()
})
test('no exec', () => {
expect(utils.validateActionRuntime({})).toBeUndefined()
Expand Down

0 comments on commit aed770b

Please sign in to comment.