Skip to content

Commit

Permalink
Node16 (#16)
Browse files Browse the repository at this point in the history
* Upgrade to node 16

* fix stryker
  • Loading branch information
xavier-thomas committed Nov 7, 2022
1 parent 8ea84fc commit a5681fa
Show file tree
Hide file tree
Showing 11 changed files with 2,196 additions and 1,744 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mutation-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Install
run: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: cfn-lint
uses: scottbrenner/cfn-lint-action@master
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

# <<<----- ADD NEW VERSIONS HERE

## 1.3.0 - (November 07, 2022)
### Changed
- Upgrade to Node16.

## 1.2.0 - (January 17, 2022)
### Changed
- Added support for deleting log groups
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:673103718481:applications/Cfn-Stack-Cleanup
SemanticVersion: 1.2.0
SemanticVersion: 1.3.0
# Optional Parameter to control the export name of the nested stack
Parameters:
ExportPrefix: !Ref AWS::StackName
Expand Down
4 changes: 2 additions & 2 deletions cfn-stack-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Metadata:
LicenseUrl: LICENSE
Name: Cfn-Stack-Cleanup
ReadmeUrl: README.md
SemanticVersion: 1.2.0
SemanticVersion: 1.3.0
SourceCodeUrl: https://github.com/xavier-thomas/aws-cfn-stack-cleanup
SpdxLicenseId: BSD-3-Clause

Expand All @@ -39,7 +39,7 @@ Resources:
Handler: index.handler
Layers:
- !Ref DependencyLayer
Runtime: nodejs12.x
Runtime: nodejs16.x
CodeUri: ./dist
MemorySize: 128
Timeout: 900
Expand Down
4 changes: 2 additions & 2 deletions codebuild/publish-buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ env:
phases:
install:
runtime-versions:
nodejs: 12
python: 3.8
nodejs: 16
python: 3.9
commands:
- curl -H "Authorization:token $GITHUB_AUTH_TOKEN" https://github.com/gitapi/repos/${RepoOwner}/${RepoName}/statuses/$CODEBUILD_RESOLVED_SOURCE_VERSION -d '{"state":"pending","description":"Build in progress","context":"SAR Publish"}'
- pip install aws-sam-cli
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-cfn-stack-cleanup",
"version": "1.2.0",
"version": "1.3.0",
"description": "An AWS Lambda that can be invoked as a custom resource from an AWS CloudFormation stack to clean up any left over stack resources such as S3 buckets, Log Groups, Sub-Stacks, etc...",
"main": "src/index.js",
"keywords": [
Expand All @@ -16,7 +16,7 @@
"author": "Xavier Thomas",
"license": "BSD-3-Clause",
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"scripts": {
"build": "babel ./src -d dist --ignore **/*.test.js,**/mocks.js && cp README.md dist/README.md && cp LICENSE dist/LICENSE",
Expand All @@ -36,25 +36,25 @@
"cfn-response-promise": "^1.1.0"
},
"devDependencies": {
"@babel/cli": "^7.16.8",
"@babel/core": "^7.16.7",
"@babel/node": "^7.16.8",
"@babel/preset-env": "^7.16.8",
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/node": "^7.20.2",
"@babel/preset-env": "^7.20.2",
"@stryker-mutator/babel-transpiler": "^4.0.0",
"@stryker-mutator/core": "^5.6.0",
"@stryker-mutator/core": "^6.3.0",
"@stryker-mutator/javascript-mutator": "^4.0.0",
"@stryker-mutator/jest-runner": "^5.6.0",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"@stryker-mutator/jest-runner": "^6.3.0",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.4.7",
"jest-junit": "^13.0.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"jest": "^29.2.2",
"jest-junit": "^14.0.1",
"jest-sonar": "^0.2.12",
"prettier": "^2.5.1"
"prettier": "^2.7.1"
},
"optionalDependencies": {
"aws-sdk": "^2.1058.0"
"aws-sdk": "^2.1248.0"
}
}
2 changes: 1 addition & 1 deletion src/index.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
MOCK_CONTEXT,
MOCK_EVENT_CREATE,
MOCK_EVENT_DELETE_RESOURCES,
MOCK_EVENT_DELETE_EMPTY,
MOCK_EVENT_DELETE_EMPTY_NO_PROP,
MOCK_EVENT_DELETE_RESOURCES,
} from './mocks';
import cfnResponse from 'cfn-response-promise';
import { deleteBucket } from './deleteBucket';
Expand Down
22 changes: 0 additions & 22 deletions stryker.conf.js

This file was deleted.

30 changes: 30 additions & 0 deletions stryker.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"testRunner": "jest",
"mutator": "javascript",
"cleanTempDir": true,
"mutate": [
"src/**/*.js",
"!src/**/*.test.js",
"!src/mocks.js"
],
"reporters": [
"clear-text",
"progress",
"html",
"dashboard"
],
"maxConcurrentTestRunners": 12,
"transpilers": ["babel"],
"packageManager": "yarn",
"babel": {
"optionsFile": ".babelrc"
},
"coverageAnalysis": "all",
"dashboard": {
"reportType": "full"
},
"jest": {
"configFile": "./jest.config.json",
"enableFindRelatedTests": true
}
}
Loading

0 comments on commit a5681fa

Please sign in to comment.