Skip to content

Commit 3b764c1

Browse files
0.0.12 release (#139)
* chore(release): prepare next release * npm: bump @actions/github from 3.0.0 to 4.0.0 Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/master/packages/github/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/parser from 3.4.0 to 3.5.0 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 3.4.0 to 3.5.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.5.0/packages/parser) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/eslint-plugin from 3.4.0 to 3.5.0 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.4.0 to 3.5.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.5.0/packages/eslint-plugin) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump typescript from 3.9.5 to 3.9.6 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.5 to 3.9.6. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint from 7.3.1 to 7.4.0 Bumps [eslint](https://github.com/eslint/eslint) from 7.3.1 to 7.4.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v7.3.1...v7.4.0) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint-plugin-jest from 23.17.1 to 23.18.0 Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.17.1 to 23.18.0. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v23.17.1...v23.18.0) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/parser from 3.5.0 to 3.6.0 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 3.5.0 to 3.6.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.6.0/packages/parser) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/eslint-plugin from 3.5.0 to 3.6.0 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.5.0 to 3.6.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.6.0/packages/eslint-plugin) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @types/jest from 26.0.3 to 26.0.4 Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.3 to 26.0.4. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/eslint-plugin from 3.6.0 to 3.6.1 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.6.0 to 3.6.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.6.1/packages/eslint-plugin) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @typescript-eslint/parser from 3.6.0 to 3.6.1 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 3.6.0 to 3.6.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.6.1/packages/parser) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump typescript from 3.9.6 to 3.9.7 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.6 to 3.9.7. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v3.9.6...v3.9.7) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump ts-jest from 26.1.1 to 26.1.3 Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 26.1.1 to 26.1.3. - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md) - [Commits](kulshekhar/ts-jest@v26.1.1...v26.1.3) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint-plugin-unicorn from 20.1.0 to 21.0.0 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 20.1.0 to 21.0.0. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](sindresorhus/eslint-plugin-unicorn@v20.1.0...v21.0.0) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump @types/jest from 26.0.4 to 26.0.5 Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.4 to 26.0.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Signed-off-by: dependabot[bot] <support@github.com> * npm: bump eslint from 7.4.0 to 7.5.0 Bumps [eslint](https://github.com/eslint/eslint) from 7.4.0 to 7.5.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v7.4.0...v7.5.0) Signed-off-by: dependabot[bot] <support@github.com> * refactor(vscode): refactor visual code config * refactor(CI): refactor GitHub CI * refactor(build): add codacy and code climate * docs(update): update docs * refactor(test): move test utils * refactor(package): refactor package.json * chore(release): 0.0.10 * docs(changelog): update changelog * chore(dependencies): update dev dependencies * chore(dependencies): update dev dependencies * chore(dependencies): update dependnencies * chore(dependencies): update dev dependencies * chore(release): bump version * chore(build): update build * chore(CHANGELOG): update changelog * chore(dependencies): ⬆️ updates dependencies * fix(build): 🐛 fixes codacy Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent d568313 commit 3b764c1

26 files changed

+323
-165
lines changed

.codacy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ exclude_paths:
2222
- '**.json'
2323
- '**.yml'
2424
- '**.md'
25+
- 'commitlint.config.js'

.codeclimate.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ plugins:
66
enabled: false
77
eslint:
88
enabled: true
9-
channel: 'eslint-6'
109
config:
1110
config: .eslintrc-cc.json
1211
fixme:
@@ -23,3 +22,6 @@ exclude_patterns:
2322
- '**/docs'
2423
- '**/node_modules/'
2524
- '**/src/*.spec.ts'
25+
- '**/fixtures'
26+
- '**/.husky'
27+
- '**/commitlint.config.js'

.eslintrc-cc.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
{
22
"root": true,
3-
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
5+
"extends": [
6+
"plugin:jest/recommended",
7+
"plugin:unicorn/recommended",
8+
"plugin:prettier/recommended"
9+
],
410
"parserOptions": {
511
"ecmaVersion": 2020,
612
"sourceType": "module",
713
"ecmaFeatures": {}
814
},
915
"env": {
1016
"node": true,
11-
"browser": true,
12-
"es2020": true
17+
"es6": true,
18+
"browser": false,
19+
"jest": true
1320
},
1421
"rules": {
15-
"complexity": ["error", 8]
22+
"@typescript-eslint/explicit-module-boundary-types": "off"
1623
},
17-
"settings": {},
18-
"globals": {}
24+
"settings": {}
1925
}

.eslintrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
"parser": "@typescript-eslint/parser",
44
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
55
"extends": [
6-
"plugin:@typescript-eslint/recommended",
76
"plugin:jest/recommended",
87
"plugin:unicorn/recommended",
9-
"plugin:prettier/recommended",
10-
"prettier/@typescript-eslint"
8+
"plugin:prettier/recommended"
119
],
1210
"parserOptions": {
1311
"ecmaVersion": 2020,

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--- Provide a general summary of your changes in the Title above -->
22

3-
## Description
3+
# Description
44

55
<!--- Describe your changes in detail -->
66

@@ -21,7 +21,7 @@
2121
<!--- Include details of your testing environment, and the tests you ran to -->
2222
<!--- see how your change affects other areas of the code, etc. -->
2323

24-
## Screenshots (if appropriate):
24+
## Screenshots (if appropriate)
2525

2626
## Types of changes
2727

@@ -32,7 +32,7 @@
3232
- [ ] New feature (non-breaking change which adds functionality)
3333
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
3434

35-
## Checklist:
35+
## Checklist
3636

3737
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
3838
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
version: 2
22
updates:
3+
4+
- package-ecosystem: 'github-actions'
5+
directory: '/'
6+
schedule:
7+
interval: 'weekly'
8+
labels:
9+
- 'npm dependencies'
10+
commit-message:
11+
prefix: 'github-actions'
12+
assignees:
13+
- 'gregoranders'
14+
target-branch: 'development'
15+
316
- package-ecosystem: 'npm'
417
directory: '/'
518
schedule:
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "CodeQL"
2+
on:
3+
push:
4+
branches: [ main, development, feature/* ]
5+
pull_request:
6+
branches: [ main, development, feature/* ]
7+
schedule:
8+
- cron: '43 7 * * 0'
9+
jobs:
10+
analyze:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
actions: read
14+
contents: read
15+
security-events: write
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
language: [ 'javascript' ]
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
submodules: recursive
24+
- uses: actions/setup-node@v2
25+
with:
26+
node-version: 16.x
27+
- name: Echo Node.js version
28+
run: node --version
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v1
31+
with:
32+
languages: ${{ matrix.language }}
33+
- name: Autobuild
34+
uses: github/codeql-action/autobuild@v1
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v1

.github/workflows/development.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,41 @@ jobs:
1919
strategy:
2020
matrix:
2121
os: [ubuntu-latest, macos-latest, windows-latest]
22-
node-version: [12.x]
22+
node-version: [16.x]
2323

2424
steps:
2525
- uses: actions/checkout@v2
2626
with:
2727
submodules: recursive
2828
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
29-
uses: actions/setup-node@v1
29+
uses: actions/setup-node@v2
3030
with:
3131
node-version: ${{ matrix.node-version }}
3232
- name: nodejs project info
3333
id: projectinfo
34-
uses: gregoranders/nodejs-create-release@master
34+
uses: gregoranders/nodejs-project-info@master
3535
- name: npm install
3636
run: |
3737
npm install
38-
- name: npm run build
39-
run: |
40-
npm run build
4138
- name: npm test
4239
run: |
4340
npm test
41+
- name: npm run build
42+
run: |
43+
npm run build
4444
- name: code coverage
45+
if: matrix.os == 'ubuntu-latest'
4546
uses: coverallsapp/github-action@master
4647
with:
4748
github-token: ${{ secrets.GITHUB_TOKEN }}
4849
path-to-lcov: ./test/coverage/lcov.info
4950
- name: publish code coverage to code climate
5051
if: matrix.os == 'ubuntu-latest'
51-
uses: paambaati/codeclimate-action@v2.6.0
52+
uses: paambaati/codeclimate-action@v3.0.0
5253
env:
5354
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
5455
with:
55-
coverageCommand: npm run test
56+
coverageCommand: npm test
5657
coverageLocations: |
5758
./test/coverage/lcov.info:lcov
5859
- name: run codacy-coverage-reporter
@@ -61,3 +62,8 @@ jobs:
6162
with:
6263
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
6364
coverage-reports: ./test/coverage/lcov.info
65+
- name: Publish Unit Test Results
66+
uses: EnricoMi/publish-unit-test-result-action/composite@v1
67+
with:
68+
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
69+
files: test/junit.xml

.github/workflows/feature.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Feature CI
2+
3+
on:
4+
push:
5+
branches:
6+
- feature/*
7+
8+
env:
9+
CI: true
10+
GITHUB_BRANCH: ${{ github.ref }}
11+
GITHUB_HEAD_REF: ${{ github.head_ref }}
12+
GITHUB_BASE_REF: ${{ github.base_ref }}
13+
GITHUB_COMMIT: ${{ github.sha }}
14+
15+
jobs:
16+
build:
17+
runs-on: ${{ matrix.os }}
18+
19+
strategy:
20+
matrix:
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
node-version: [16.x]
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
with:
27+
submodules: recursive
28+
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
29+
uses: actions/setup-node@v2
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
- name: nodejs project info
33+
id: projectinfo
34+
uses: gregoranders/nodejs-project-info@master
35+
- name: npm install
36+
run: |
37+
npm install
38+
- name: npm test
39+
run: |
40+
npm test
41+
- name: npm run build
42+
run: |
43+
npm run build
44+
- name: code coverage
45+
if: matrix.os == 'ubuntu-latest'
46+
uses: coverallsapp/github-action@master
47+
with:
48+
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
path-to-lcov: ./test/coverage/lcov.info
50+
- name: publish code coverage to code climate
51+
if: matrix.os == 'ubuntu-latest'
52+
uses: paambaati/codeclimate-action@v3.0.0
53+
env:
54+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
55+
with:
56+
coverageCommand: npm test
57+
coverageLocations: |
58+
./test/coverage/lcov.info:lcov
59+
- name: run codacy-coverage-reporter
60+
if: matrix.os == 'ubuntu-latest'
61+
uses: codacy/codacy-coverage-reporter-action@master
62+
with:
63+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
64+
coverage-reports: ./test/coverage/lcov.info
65+
- name: Publish Unit Test Results
66+
uses: EnricoMi/publish-unit-test-result-action/composite@v1
67+
with:
68+
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
69+
files: test/junit.xml

.github/workflows/master.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
strategy:
2020
matrix:
2121
os: [ubuntu-latest, macos-latest, windows-latest]
22-
node-version: [12.x]
22+
node-version: [16.x]
2323

2424
steps:
2525
- uses: actions/checkout@v2
2626
with:
2727
submodules: recursive
2828
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
29-
uses: actions/setup-node@v1
29+
uses: actions/setup-node@v2
3030
with:
3131
node-version: ${{ matrix.node-version }}
3232
- name: nodejs project info
@@ -35,12 +35,12 @@ jobs:
3535
- name: npm install
3636
run: |
3737
npm install
38-
- name: npm run build
39-
run: |
40-
npm run build
4138
- name: npm test
4239
run: |
4340
npm test
41+
- name: npm run build
42+
run: |
43+
npm run build
4444
- name: code coverage
4545
if: matrix.os == 'ubuntu-latest'
4646
uses: coverallsapp/github-action@master
@@ -49,11 +49,11 @@ jobs:
4949
path-to-lcov: ./test/coverage/lcov.info
5050
- name: publish code coverage to code climate
5151
if: matrix.os == 'ubuntu-latest'
52-
uses: paambaati/codeclimate-action@v2.6.0
52+
uses: paambaati/codeclimate-action@v3.0.0
5353
env:
5454
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
5555
with:
56-
coverageCommand: npm run test
56+
coverageCommand: npm test
5757
coverageLocations: |
5858
./test/coverage/lcov.info:lcov
5959
- name: run codacy-coverage-reporter
@@ -62,6 +62,11 @@ jobs:
6262
with:
6363
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
6464
coverage-reports: ./test/coverage/lcov.info
65+
- name: Publish Unit Test Results
66+
uses: EnricoMi/publish-unit-test-result-action/composite@v1
67+
with:
68+
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
69+
files: test/junit.xml
6570
- name: create release
6671
if: matrix.os == 'ubuntu-latest'
6772
id: createrelease

0 commit comments

Comments
 (0)