From 03395131d84dec5d5b24f3775fa26824a5a1e6e3 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:35:51 +0200 Subject: [PATCH] Add build to ESPHome validation --- .github/workflows/validate_esphome.yml | 8 ++++++++ test/ESPHome/advanced.yaml | 9 +++++++++ test/ESPHome/core.yaml | 8 ++++++++ 3 files changed, 25 insertions(+) create mode 100644 test/ESPHome/advanced.yaml create mode 100644 test/ESPHome/core.yaml diff --git a/.github/workflows/validate_esphome.yml b/.github/workflows/validate_esphome.yml index 2ce35e1..7fd6743 100644 --- a/.github/workflows/validate_esphome.yml +++ b/.github/workflows/validate_esphome.yml @@ -25,3 +25,11 @@ jobs: run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_addon_climate_heat.yaml - name: Validate nspanel_esphome_prebuilt.yaml run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_prebuilt.yaml + - name: Build core + uses: esphome/build-action@v1.8.0 + with: + yaml_file: /test/ESPHome/core.yaml + - name: Build core+advanced + uses: esphome/build-action@v1.8.0 + with: + yaml_file: /test/ESPHome/advanced.yaml diff --git a/test/ESPHome/advanced.yaml b/test/ESPHome/advanced.yaml new file mode 100644 index 0000000..389209b --- /dev/null +++ b/test/ESPHome/advanced.yaml @@ -0,0 +1,9 @@ +substitutions: + device_name: nspanel + wifi_ssid: "nspanel" + wifi_password: "NSPanel_HA_Blueprint" + nextion_update_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/dummy" + +packages: + core_package: !include /nspanel_esphome.yaml # Core package + advanced_package: !include /nspanel_esphome_advanced.yaml diff --git a/test/ESPHome/core.yaml b/test/ESPHome/core.yaml new file mode 100644 index 0000000..89e9e3f --- /dev/null +++ b/test/ESPHome/core.yaml @@ -0,0 +1,8 @@ +substitutions: + device_name: nspanel + wifi_ssid: "nspanel" + wifi_password: "NSPanel_HA_Blueprint" + nextion_update_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/dummy" + +packages: + core_package: !include /nspanel_esphome.yaml # Core package