diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9a2351..9621437 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,9 @@ jobs: run: | for f in ${{ steps.changed.outputs.all_changed_files }}; do # Zephyr RTOS platforms need the esphomeplatformzephyr fork, upstream doesn't know them yet - if grep -qE '^(nrf|stm32|nxp|renesas|silabs):' "$f"; then echo "Skipping $f (zephyr fork)"; continue; fi + # (the platform key may also come from an !include'd package, e.g. common/xiao_stm32c5_canopen.yaml) + files="$f $(grep -oE '!include [^ ]+' "$f" | cut -d' ' -f2)" + if grep -qsE '^(nrf|stm32|nxp|renesas|silabs):' $files; then echo "Skipping $f (zephyr fork)"; continue; fi echo "Validating $f..." esphome config "$f" done