Skip to content

Commit fb78b72

Browse files
node18 (#39)
1 parent 4e984fb commit fb78b72

File tree

9 files changed

+1869
-1459
lines changed

9 files changed

+1869
-1459
lines changed

.github/workflows/mutation-testing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v1
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v3
1717
with:
18-
node-version: 16.x
18+
node-version: 18
1919

2020
- name: Install
2121
run: yarn

.github/workflows/tagging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
tag:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- uses: Klemensas/action-autotag@stable
1414
with:
1515
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/test-coverage.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,18 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v1
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v3
1717
with:
18-
node-version: 16.x
18+
node-version: 18
1919

2020
- name: cfn-lint
21-
uses: scottbrenner/cfn-lint-action@master
22-
with:
23-
args: "codepipeline-waiter.yaml"
21+
uses: scottbrenner/cfn-lint-action@v2
22+
23+
- name: Print the Cloud Formation Linter Version & run Linter.
24+
run: |
25+
cfn-lint --version
26+
cfn-lint -t ./codepipeline-waiter.yaml
2427
2528
- name: Install
2629
run: yarn

CHANGELOG.MD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
77

88
# <<<----- ADD NEW VERSIONS HERE
99

10+
## 2.3.0 - (October 20, 2023)
11+
### Changed
12+
- Upgrade to Node18.
13+
- Fixes to build steps.
14+
- Dependency upgrade.
15+
1016
## 2.2.0 / 2.2.1 - (November 07, 2022)
1117
### Changed
1218
- Upgrade to Node16.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Resources:
6262
Properties:
6363
Location:
6464
ApplicationId: arn:aws:serverlessrepo:us-east-1:673103718481:applications/CodePipeline-Waiter
65-
SemanticVersion: 2.2.1
65+
SemanticVersion: 2.3.0
6666
# Optional Parameter to control the export name of the nested stack
6767
Parameters:
6868
ExportPrefix: !Ref AWS::StackName

codepipeline-waiter.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Metadata:
2424
LicenseUrl: LICENSE
2525
Name: CodePipeline-Waiter
2626
ReadmeUrl: README.md
27-
SemanticVersion: 2.2.1
27+
SemanticVersion: 2.3.0
2828
SourceCodeUrl: https://github.com/xavier-thomas/aws-codepipeline-waiter
2929
SpdxLicenseId: BSD-3-Clause
3030

@@ -35,7 +35,7 @@ Resources:
3535
Properties:
3636
FunctionName: !Sub ${ExportPrefix}PipelineWaiterLambda
3737
Handler: index.handler
38-
Runtime: nodejs16.x
38+
Runtime: nodejs18.x
3939
CodeUri: ./dist
4040
MemorySize: 128
4141
Timeout: 30

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-codepipeline-waiter",
3-
"version": "2.2.1",
3+
"version": "2.3.0",
44
"description": "An AWS lambda for a deployment AWS code-pipeline to monitor and wait for another pipeline.",
55
"main": "src/index.js",
66
"keywords": [
@@ -14,7 +14,7 @@
1414
"author": "Xavier Thomas",
1515
"license": "BSD-3-Clause",
1616
"engines": {
17-
"node": ">=16.0.0"
17+
"node": ">=18.0.0"
1818
},
1919
"scripts": {
2020
"build": "babel ./src -d dist --ignore **/*.test.js,**/mocks.js && cp README.md dist/README.md && cp LICENSE dist/LICENSE",
@@ -31,25 +31,25 @@
3131
}
3232
},
3333
"dependencies": {
34-
"aws-sdk": "^2.1248.0"
34+
"aws-sdk": "^2.1477.0"
3535
},
3636
"devDependencies": {
37-
"@babel/cli": "^7.19.3",
38-
"@babel/core": "^7.20.2",
39-
"@babel/node": "^7.20.2",
40-
"@babel/preset-env": "^7.20.2",
37+
"@babel/cli": "^7.23.0",
38+
"@babel/core": "^7.23.2",
39+
"@babel/node": "^7.22.19",
40+
"@babel/preset-env": "^7.23.2",
4141
"@stryker-mutator/babel-transpiler": "^4.0.0",
42-
"@stryker-mutator/core": "^6.3.0",
42+
"@stryker-mutator/core": "^7.3.0",
4343
"@stryker-mutator/javascript-mutator": "^4.0.0",
44-
"@stryker-mutator/jest-runner": "^6.3.0",
45-
"eslint": "^8.27.0",
46-
"eslint-config-prettier": "^8.5.0",
44+
"@stryker-mutator/jest-runner": "^7.3.0",
45+
"eslint": "^8.51.0",
46+
"eslint-config-prettier": "^9.0.0",
4747
"eslint-plugin-node": "^11.1.0",
48-
"eslint-plugin-prettier": "^4.2.1",
49-
"husky": "^8.0.1",
50-
"jest": "^29.2.2",
51-
"jest-junit": "^14.0.1",
52-
"jest-sonar": "^0.2.12",
53-
"prettier": "^2.7.1"
48+
"eslint-plugin-prettier": "^5.0.1",
49+
"husky": "^8.0.3",
50+
"jest": "^29.7.0",
51+
"jest-junit": "^16.0.0",
52+
"jest-sonar": "^0.2.16",
53+
"prettier": "^3.0.3"
5454
}
5555
}

src/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe('[index.js] unit tests', () => {
8282
expect(notifyFailedJob).toHaveBeenCalledWith(
8383
MOCK_EVENT,
8484
MOCK_CONTEXT,
85-
'The following error occurred: {"AccessDenied":"User: arn:aws:sts::123456789012:assumed-role/FakeLambdaRole/PipelineMonitorLambda is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::111111111111:role/FakeRole"}'
85+
'The following error occurred: {"AccessDenied":"User: arn:aws:sts::123456789012:assumed-role/FakeLambdaRole/PipelineMonitorLambda is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::111111111111:role/FakeRole"}',
8686
);
8787
});
8888

@@ -146,7 +146,7 @@ describe('[index.js] unit tests', () => {
146146
expect(notifyFailedJob).toHaveBeenCalledWith(
147147
MOCK_EVENT_INVALID,
148148
MOCK_CONTEXT,
149-
'Valid user parameters have not been specified.'
149+
'Valid user parameters have not been specified.',
150150
);
151151
});
152152
});

0 commit comments

Comments
 (0)