From 3326451f7f1374f70505262de2cfcfa35e3149c2 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Thu, 1 Aug 2024 11:29:43 +0200 Subject: [PATCH] Validate all YAML configurations (#85) --- .github/workflows/ci.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a3212e5..3491501 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,6 +9,9 @@ on: # yamllint disable-line rule:truthy # Once per week on wednesday - cron: 0 12 * * 3 +env: + FORCE_COLOR: 1 + jobs: yamllint: runs-on: ubuntu-latest @@ -189,9 +192,10 @@ jobs: - name: Write secrets.yaml shell: bash run: 'echo -e "wifi_ssid: ssid\nwifi_password: password" > secrets.yaml' - - run: esphome config yeelight_*.yaml - - run: esphome -s external_components_source components config yeerc_ylyk01yl.yaml - - run: esphome -s external_components_source components config yeerc_ylyk01yl_fancl.yaml + - run: | + for YAML in yee*.yaml; do + esphome -s external_components_source components config $YAML >/dev/null + done esphome-compile: runs-on: ubuntu-latest