Add validation actions (#693)
* Add validation action * Clean-up yaml Removed trailing spaces * Clean-up yaml Removed trailing spaces * Clean-up yaml Removed trailing spaces * Clean-up yaml Removed trailing spaces * Clean-up yaml Removed trailing spaces * Update validate_yaml.yml * Validate on push Only for nspanel_esphome.yaml and nspanel_blueprint.yaml * Extending warnings for +255-char lines * Update validate_yaml.yml * Clean-up yaml * Update validate_yaml.yml * Clean-up yaml * Clean-up yaml * Clean-up yaml * Clean-up yaml * Clean-up yaml * Update and rename validate_yaml.yml to validate_blueprint.yml * Create validate_esphome.yml * Clean-up yaml
This commit is contained in:
19
.github/workflows/validate_blueprint.yml
vendored
Normal file
19
.github/workflows/validate_blueprint.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Validate Blueprint YAML
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "nspanel_blueprint.yaml"
|
||||||
|
pull_request:
|
||||||
|
#schedule:
|
||||||
|
# - cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
code_scan:
|
||||||
|
name: Validate Blueprint YAML
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Validate nspanel_blueprint.yaml
|
||||||
|
run: yamllint -c "./.yamllint/rules.yml" nspanel_blueprint.yaml
|
||||||
19
.github/workflows/validate_esphome.yml
vendored
Normal file
19
.github/workflows/validate_esphome.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Validate ESPHome YAML
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "nspanel_esphome.yaml"
|
||||||
|
pull_request:
|
||||||
|
#schedule:
|
||||||
|
# - cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
code_scan:
|
||||||
|
name: Validate Blueprint YAML
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Validate nspanel_esphome.yaml
|
||||||
|
run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome.yaml
|
||||||
7
.yamllint/rules.yml
Normal file
7
.yamllint/rules.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
extends: relaxed
|
||||||
|
|
||||||
|
rules:
|
||||||
|
# 255 chars should be enough, but don't fail if a line is longer
|
||||||
|
line-length:
|
||||||
|
max: 255
|
||||||
|
level: warning
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# Please insert into the default file "configuration.yaml
|
# Please insert into the default file "configuration.yaml"
|
||||||
# Folder must be changed to the directory where the tft file (Nextion Editor) will be uploaded
|
# Folder must be changed to the directory where the tft file (Nextion Editor) will be uploaded
|
||||||
###########
|
###########
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user