-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beta' of https://github.com/jeedom/plugin-zwavejs into …
…beta
- Loading branch information
Showing
16 changed files
with
505 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!-- Provide a general summary of your changes in the title above. --> | ||
|
||
<!-- | ||
Please target the `beta` branch when submitting your pull request, unless your change **only** applies to Jeedom 4.x. | ||
--> | ||
|
||
## Description | ||
<!-- | ||
What do you want to achieve with this PR? Why did you write this code? What problem does this PR solve? | ||
Describe your changes in detail and, if relevant, explain which choices you have made and why. | ||
--> | ||
|
||
|
||
### Suggested changelog entry | ||
<!-- Please provide a short description of the change for the changelog. --> | ||
|
||
|
||
### Related issues/external references | ||
|
||
Fixes # | ||
|
||
|
||
## Types of changes | ||
<!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> | ||
- [ ] Bug fix _(non-breaking change which fixes)_ | ||
- [ ] New feature _(non-breaking change which adds functionality)_ | ||
- [ ] Breaking change _(fix or feature that would cause existing functionality to change)_ | ||
- [ ] This change is only breaking for integrators, not for external standards or end-users. | ||
- [ ] Documentation improvement | ||
|
||
|
||
## PR checklist | ||
<!-- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
- [ ] I have checked there is no other PR open for the same change. | ||
- [ ] I have read the [Contribution Guidelines](https://doc.jeedom.com/fr_FR/contribute/). | ||
- [ ] I grant the project the right to include and distribute the code under the GNU. | ||
- [ ] I have added tests to cover my changes. | ||
- [ ] I have verified that the code complies with the projects coding standards. | ||
- [ ] [Required for new sniffs] I have added MD documentation for the sniff. | ||
|
||
<!-- | ||
============================================================================================ | ||
Please make sure your pull request passes all continuous integration checks! | ||
PRs which are failing their CI checks will likely be ignored by the maintainers. | ||
PRs using atomic, descriptive commits are hugely appreciated as it will make | ||
reviewing your changes easier for the maintainers. | ||
============================================================================================ | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the main branch | ||
push: | ||
branches: | ||
- beta | ||
pull_request: | ||
branches: | ||
- beta | ||
- master | ||
|
||
name : 'Code Lint Global' | ||
|
||
jobs: | ||
run-linters: | ||
name: Test Linters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "7.4" | ||
coverage: none | ||
tools: phpcs | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
|
||
# ESLint and Prettier must be in `package.json` | ||
- name: Install Node.js dependencies | ||
run: npm i prettier | ||
|
||
- name: Install Python dependencies | ||
run: pip install flake8 black | ||
|
||
- name: Run linters | ||
uses: wearerequired/lint-action@v2 | ||
with: | ||
php_codesniffer: false | ||
# Optional: Ignore warnings | ||
php_codesniffer_args: "-n --ignore-annotations ./core ./desktop ./plugin_info" | ||
flake8: true | ||
prettier: true | ||
prettier_extensions: css,html,js,json,jsx,md,sass,scss,ts,tsx,vue,yaml | ||
auto_fix: true | ||
prettier_auto_fix: true | ||
git_email: [email protected] | ||
git_name: 'JeedomBot lint Pretty' | ||
commit: false | ||
black: true | ||
black_auto_fix: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name : 'Php 7.3' | ||
|
||
on: | ||
push: | ||
branches: | ||
- beta | ||
paths: | ||
- "**.php" | ||
pull_request: | ||
branches: | ||
- beta | ||
- master | ||
paths: | ||
- "**.php" | ||
|
||
jobs: | ||
run-linters: | ||
name: Run linters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: PHP syntax checker 7.3 | ||
uses: prestashop/github-action-php-lint/7.3@v1 | ||
with: | ||
folder-to-exclude: "! -path \"./3rdparty/*\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name : 'Php 7.4' | ||
|
||
on: | ||
push: | ||
branches: | ||
- beta | ||
paths: | ||
- "**.php" | ||
pull_request: | ||
branches: | ||
- beta | ||
- master | ||
paths: | ||
- "**.php" | ||
|
||
jobs: | ||
run-linters: | ||
name: Run linters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: PHP syntax checker 7.4 | ||
uses: prestashop/github-action-php-lint/7.4@v1 | ||
with: | ||
folder-to-exclude: "! -path \"./3rdparty/*\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "PHP" | ||
|
||
on: | ||
push: | ||
branches: | ||
- beta | ||
paths: | ||
- "**.php" | ||
pull_request: | ||
branches: | ||
- beta | ||
- master | ||
paths: | ||
- "**.php" | ||
|
||
jobs: | ||
phpcs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: michaelw90/PHP-Lint@master | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
# Plugin Zwave-Js | ||
|
||
Validation PHP Version (branche BETA) : | ||
|
||
![PHP 7.3](https://github.com/jeedom/plugin-zwavejs/actions/workflows/lint_Php73.yml/badge.svg?branch=beta) | ||
![PHP 7.4](https://github.com/jeedom/plugin-zwavejs/actions/workflows/lint_Php74.yml/badge.svg?branch=beta) | ||
|
||
Validation Code int (branche BETA): | ||
|
||
![PHP](https://github.com/jeedom/plugin-zwavejs/actions/workflows/php.yml/badge.svg?branch=beta) | ||
![PHP](https://github.com/jeedom/plugin-zwavejs/actions/workflows/codeLintGlobal.yml/badge.svg?branch=beta) | ||
|
||
|
||
-------- | ||
Validation PHP Version (branche MASTER) : | ||
|
||
![PHP 7.3](https://github.com/jeedom/plugin-zwavejs/actions/workflows/lint_Php73.yml/badge.svg?branch=master) | ||
![PHP 7.4](https://github.com/jeedom/plugin-zwavejs/actions/workflows/lint_Php74.yml/badge.svg?branch=master) | ||
|
||
Validation Code int (branche MASTER): | ||
|
||
![PHP](https://github.com/jeedom/plugin-zwavejs/actions/workflows/php.yml/badge.svg?branch=master) | ||
![PHP](https://github.com/jeedom/plugin-zwavejs/actions/workflows/codeLintGlobal.yml/badge.svg?branch=master) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.