Merge pull request #1594 from Blackymas/dev

Lint
This commit is contained in:
Edward Firmo
2024-01-11 17:35:59 +01:00
committed by GitHub
4 changed files with 40 additions and 29 deletions

View File

@@ -1,5 +1,7 @@
---
name: Validate Blueprint YAML name: Validate Blueprint YAML
# yamllint disable-line rule:truthy
on: on:
push: push:
paths: paths:
@@ -7,8 +9,6 @@ on:
pull_request: pull_request:
paths: paths:
- "nspanel_blueprint.yaml" - "nspanel_blueprint.yaml"
#schedule:
# - cron: "0 0 * * *"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@@ -19,3 +19,4 @@ jobs:
- uses: actions/checkout@v4.1.0 - uses: actions/checkout@v4.1.0
- name: Validate nspanel_blueprint.yaml - name: Validate nspanel_blueprint.yaml
run: yamllint -c "./.rules/yamllint.yml" nspanel_blueprint.yaml run: yamllint -c "./.rules/yamllint.yml" nspanel_blueprint.yaml
...

View File

@@ -1,5 +1,7 @@
---
name: Validate ESPHome name: Validate ESPHome
# yamllint disable-line rule:truthy
on: on:
push: push:
paths: paths:
@@ -150,3 +152,4 @@ jobs:
uses: esphome/build-action@v1.8.0 uses: esphome/build-action@v1.8.0
with: with:
yaml_file: "./.test/esphome_advanced_climate_heat_customizations.yaml" yaml_file: "./.test/esphome_advanced_climate_heat_customizations.yaml"
...

View File

@@ -1,5 +1,7 @@
---
name: Validate ESPHome (beta) name: Validate ESPHome (beta)
# yamllint disable-line rule:truthy
on: on:
workflow_dispatch: workflow_dispatch:
@@ -151,3 +153,4 @@ jobs:
with: with:
yaml_file: "./.test/esphome_advanced_climate_heat_customizations.yaml" yaml_file: "./.test/esphome_advanced_climate_heat_customizations.yaml"
version: beta version: beta
...

View File

@@ -1,5 +1,7 @@
---
name: Validate Markdown name: Validate Markdown
# yamllint disable-line rule:truthy
on: on:
pull_request: pull_request:
paths: paths:
@@ -45,6 +47,8 @@ jobs:
- name: Markdown links - name: Markdown links
uses: gaurav-nelson/github-action-markdown-link-check@v1 uses: gaurav-nelson/github-action-markdown-link-check@v1
with: with:
# yamllint disable-line rule:truthy
check-modified-files-only: yes check-modified-files-only: yes
config-file: '.rules/mlc_config.json' config-file: '.rules/mlc_config.json'
base-branch: 'main' base-branch: 'main'
...