You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.9 KiB
65 lines
1.9 KiB
######################################################################
|
|
# @CCOSTAN - Follow Me on X
|
|
# For more info visit https://www.vcloudinfo.com/click-here
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
# -------------------------------------------------------------------
|
|
# Config Validation - Deterministic repository validation gate.
|
|
# Blocks private/generated artifacts, then runs strict repository checks.
|
|
# -------------------------------------------------------------------
|
|
######################################################################
|
|
name: Config Validation
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: ["master"]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: config-validation-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
deterministic-validation:
|
|
name: Deterministic validation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Reject private or generated artifacts
|
|
shell: pwsh
|
|
run: ./tools/check_public_repo_safety.ps1
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v7
|
|
with:
|
|
python-version: "3.13"
|
|
cache: pip
|
|
cache-dependency-path: requirements-dev.txt
|
|
|
|
- name: Install validation dependencies
|
|
run: python -m pip install --requirement requirements-dev.txt
|
|
|
|
- name: Run mutation-sensitive validator tests
|
|
run: python -m unittest discover -s tests -v
|
|
|
|
- name: Validate dashboard YAML and include graph
|
|
shell: pwsh
|
|
run: ./tools/validate_dashboards.ps1
|
|
|
|
- name: Validate holiday calendars, scenes, and routing
|
|
shell: pwsh
|
|
run: ./tools/holiday_lighting_coverage.ps1
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: "24"
|
|
|
|
- name: Validate browser smoke script syntax
|
|
run: node --check tools/ha_ui_smoke.mjs
|