Skip to content

Commit

Permalink
Merge pull request #5 from jasonrm/php-arm
Browse files Browse the repository at this point in the history
Add PHP 8.2 and 8.3 arm layers
  • Loading branch information
mnapoli authored May 9, 2024
2 parents f684597 + 2660f13 commit b059223
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const layerNames = [
'php-81-fpm',
'php-80',
'php-80-fpm',
'arm-php-83',
'arm-php-83-fpm',
'arm-php-82',
'arm-php-82-fpm',
'arm-php-81',
'arm-php-81-fpm',
'arm-php-80',
Expand Down
10 changes: 10 additions & 0 deletions test/layers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ describe('layers', () => {

test('layerVersions', () => {
expect(layerVersions).to.have.keys([
"php-83",
"php-83-fpm",
"php-82",
"php-82-fpm",
"php-81",
"php-81-fpm",
"php-80",
"php-80-fpm",
"arm-php-83",
"arm-php-83-fpm",
"arm-php-82",
"arm-php-82-fpm",
"arm-php-81",
"arm-php-81-fpm",
"arm-php-80",
Expand All @@ -23,6 +29,8 @@ describe('layers', () => {
});

test('functionLayerArn', () => {
expect(functionLayerArn('us-east-1', '8.3')).matches(/arn:aws:lambda:us-east-1:534081306603:layer:php-83:\d+/);
expect(functionLayerArn('us-east-1', '8.3', 'arm')).matches(/arn:aws:lambda:eu-west-1:534081306603:layer:arm-php-83:\d+/);
expect(functionLayerArn('us-east-1', '8.2')).matches(/arn:aws:lambda:us-east-1:534081306603:layer:php-82:\d+/);
expect(functionLayerArn('us-east-1', '8.1', 'arm')).matches(/arn:aws:lambda:us-east-1:534081306603:layer:arm-php-81:\d+/);

Expand All @@ -32,6 +40,8 @@ describe('layers', () => {
});

test('fpmLayerArn', () => {
expect(fpmLayerArn('us-east-1', '8.3')).matches(/arn:aws:lambda:us-east-1:534081306603:layer:php-83-fpm:\d+/);
expect(fpmLayerArn('us-east-1', '8.3', 'arm')).matches(/arn:aws:lambda:us-east-1:534081306603:layer:arm-php-83-fpm:\d+/);
expect(fpmLayerArn('us-east-1', '8.2')).matches(/arn:aws:lambda:us-east-1:534081306603:layer:php-82-fpm:\d+/);
expect(fpmLayerArn('us-east-1', '8.1', 'arm')).matches(/arn:aws:lambda:us-east-1:534081306603:layer:arm-php-81-fpm:\d+/);

Expand Down

0 comments on commit b059223

Please sign in to comment.