Skip to content

Commit

Permalink
0.0.9 release (#125)
Browse files Browse the repository at this point in the history
* npm: bump @microsoft/api-documenter from 7.8.17 to 7.8.19

Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.8.17 to 7.8.19.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.8.17...@microsoft/api-documenter_v7.8.19)

Signed-off-by: dependabot[bot] <support@github.com>

* npm: bump eslint-plugin-react from 7.20.0 to 7.20.1

Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.0 to 7.20.1.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](jsx-eslint/eslint-plugin-react@v7.20.0...v7.20.1)

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 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 @microsoft/api-documenter from 7.8.19 to 7.8.21

Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.8.19 to 7.8.21.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.8.19...@microsoft/api-documenter_v7.8.21)

Signed-off-by: dependabot[bot] <support@github.com>

* npm: bump eslint-plugin-react from 7.20.1 to 7.20.3

Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.1 to 7.20.3.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](jsx-eslint/eslint-plugin-react@v7.20.1...v7.20.3)

Signed-off-by: dependabot[bot] <support@github.com>

* npm: bump eslint-plugin-react-hooks from 4.0.4 to 4.0.5

Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks)

Signed-off-by: dependabot[bot] <support@github.com>

* chore(dependecies): update dev dependencies

* chore(dependencies): update dev dependencies

* chore(dependencies): update dependencies

* chore(dev dependencies): ⬆️ updates dependencies

* ci(dev dependencies): 🐛 runs ci on node 12, 16 and 17

* ci: 🐛 adds codacy config

* ci: 🐛 fixes executable bit on hooks

* chore: 🔖 bumps version

* docs(docs): ⬆️ bumps version

* ci(workflows): 👷 refactors GitHub workflows

* revert: ♻️ reverts auto fix

* ci(workflows): 👷 test previous node versions

* ci(workflows): 🐛 removes node 15.x

* ci(workflows): 🐛 removes node 10.x

* fix: 🐛 fixes json with comments issue

* refactor(dependencies): ⬆️ removes node 10 support

* fix(script): 🐛 fixes copy and paste issue

* chore(release): 🔖 0.0.9 release

* ci(workflows): 👷 adds node 13 and 14 to ci workflow

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
gregoranders and dependabot[bot] authored Feb 2, 2022
1 parent dfd38e9 commit 1dcd56c
Show file tree
Hide file tree
Showing 35 changed files with 427 additions and 213 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
- node/with-cache:
steps:
- run: npm install
- run: npm test
- run: npm build
workflows:
build-and-test:
jobs:
Expand Down
24 changes: 24 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
engines:
duplication:
exclude_paths:
- config/engines.yml
metric:
exclude_paths:
- config/engines.yml
remark-int:
exclude_paths:
- config/engines.yml
coverage:
exclude_paths:
- config/engines.yml
exclude_paths:
- '.circleci/**'
- '.github/**'
- '.vscode/**'
- 'src/index.ts'
- 'src/fixtures/**'
- 'src/*.spec.*'
- '**.json'
- '**.yml'
- '**.md'
3 changes: 2 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ plugins:
enabled: false
eslint:
enabled: true
channel: 'eslint-6'
config:
config: .eslintrc-cc.json
extensions:
Expand All @@ -35,3 +34,5 @@ exclude_patterns:
- '**/test'
- '**/docs'
- '**/node_modules/'
- '**/.husky'
- '**/commitlint.config.js'
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ README.md
SECURITY.md
CHANGELOG.md
LICENSE
commitlint.config.js
5 changes: 1 addition & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "jest", "unicorn", "@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 2020,
Expand All @@ -22,7 +20,6 @@
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "createElement" }],
"sort-imports": [
"error",
{
Expand Down
7 changes: 4 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
# Description

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

Expand All @@ -21,17 +21,18 @@
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):
## Screenshots (if appropriate)

## Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->

- [ ] Dependencies (non-breaking change which updates dependencies)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist:
## Checklist

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
Expand Down
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
version: 2
updates:

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
labels:
- 'npm dependencies'
commit-message:
prefix: 'github-actions'
assignees:
- 'gregoranders'
target-branch: 'development'

- package-ecosystem: 'npm'
directory: '/'
schedule:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "CodeQL"
on:
push:
branches: [ main, development, feature/* ]
pull_request:
branches: [ main, development, feature/* ]
schedule:
- cron: '43 7 * * 0'
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Echo Node.js version
run: node --version
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
36 changes: 33 additions & 3 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

env:
CI: true
GITHUB_BRANCH: ${{ github.ref }}
GITHUB_HEAD_REF: ${{ github.head_ref }}
GITHUB_BASE_REF: ${{ github.base_ref }}
GITHUB_COMMIT: ${{ github.sha }}

jobs:
build:
Expand All @@ -15,12 +19,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [10.x, 12.x, 13.x, 14.x]
node-version: [12.x, 13.x, 14.x, 16.x, 17.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project information
Expand All @@ -29,9 +33,35 @@ jobs:
- name: npm install
run: |
npm install
- name: npm test
run: |
npm test
- name: npm run build
run: |
npm run build
- name: code coverage
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test/coverage/lcov.info
- name: publish code coverage to code climate
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
files: test/junit.xml
38 changes: 34 additions & 4 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@ on:

env:
CI: true
GITHUB_BRANCH: ${{ github.ref }}
GITHUB_HEAD_REF: ${{ github.head_ref }}
GITHUB_BASE_REF: ${{ github.base_ref }}
GITHUB_COMMIT: ${{ github.sha }}

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x]
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [12.x, 16.x, 17.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project information
Expand All @@ -29,9 +33,35 @@ jobs:
- name: npm install
run: |
npm install
- name: npm test
run: |
npm test
- name: npm run build
run: |
npm run build
- name: code coverage
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test/coverage/lcov.info
- name: publish code coverage to code climate
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
files: test/junit.xml
35 changes: 28 additions & 7 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

env:
CI: true
GITHUB_BRANCH: ${{ github.ref }}
GITHUB_HEAD_REF: ${{ github.head_ref }}
GITHUB_BASE_REF: ${{ github.base_ref }}
GITHUB_COMMIT: ${{ github.sha }}

jobs:
build:
Expand All @@ -15,12 +19,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [10.x, 12.x, 13.x, 14.x]
node-version: [12.x, 13.x, 14.x, 16.x, 17.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project information
Expand All @@ -29,23 +33,40 @@ jobs:
- name: npm install
run: |
npm install
- name: npm test
run: |
npm test
- name: npm run build
run: |
npm run build
- name: code coverage
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test/coverage/lcov.info
- name: publish code coverage to code climate
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'
uses: paambaati/codeclimate-action@v2.6.0
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run test
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
files: test/junit.xml
- name: create release
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
id: createrelease
uses: gregoranders/nodejs-create-release@master
env:
Expand Down
Loading

0 comments on commit 1dcd56c

Please sign in to comment.