Skip to content

Commit

Permalink
Add tests with core packages
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardtfn committed Nov 29, 2024
1 parent 70faa02 commit 0d43820
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 9 deletions.
45 changes: 36 additions & 9 deletions .github/workflows/validate_esphome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ jobs:
- name: Validate YAML files
run: find . -name "*.yaml" -exec yamllint -c ./.rules/yamllint.yml {} +

build_cores:
name: Core
build_base:
name: Base package
needs: [code_scan, setup_dependencies]
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -129,9 +129,36 @@ jobs:
yaml-file: ${{ matrix.yaml_file }}
version: beta

build_core:
name: Core
needs: build_base
runs-on: ubuntu-latest
strategy:
matrix:
include:
- id: idf_v4
base: idf_v4
yaml-file: ".test/esphome_idf_core.yaml"
- id: idf_v5
base: idf_v5
yaml-file: ".test/esphome_idf5_core.yaml"
- id: ard
base: ard
yaml-file: ".test/esphome_ard_core.yaml"

steps:
- name: Checkout repository
uses: actions/checkout@main

- name: Build Advanced Firmware
uses: esphome/build-action@main
with:
yaml-file: ${{ matrix.yaml-file }}
version: beta

build_advanced:
name: Advanced
needs: build_cores
needs: build_base
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -158,7 +185,7 @@ jobs:

build_ble_tracker:
name: BLE Tracker
needs: build_cores
needs: build_base
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -182,7 +209,7 @@ jobs:

build_bluetooth_proxy:
name: Bluetooth Proxy
needs: build_cores
needs: build_base
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -206,7 +233,7 @@ jobs:

build_climate_cool:
name: Climate Cool
needs: build_cores
needs: build_base
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -233,7 +260,7 @@ jobs:

build_climate_heat:
name: Climate Heat
needs: build_cores
needs: build_base
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -260,7 +287,7 @@ jobs:

build_climate_dual:
name: Climate Dual
needs: build_cores
needs: build_base
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -337,7 +364,7 @@ jobs:
build_cover:
name: Cover
needs:
- build_cores
- build_base
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
14 changes: 14 additions & 0 deletions .test/esphome_ard_core.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
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 ../esphome/nspanel_esphome_core.yaml # Core package

esp32:
framework:
type: arduino
...
17 changes: 17 additions & 0 deletions .test/esphome_idf5_core.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
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 ../esphome/nspanel_esphome_core.yaml # Core package

esp32:
framework:
type: esp-idf
version: 5.1.5
source: https://github.com/pioarduino/esp-idf/releases/download/v5.1.5/esp-idf-v5.1.5.zip
platform_version: https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip
...
10 changes: 10 additions & 0 deletions .test/esphome_idf_core.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
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 ../esphome/nspanel_esphome_core.yaml # Core package
...

0 comments on commit 0d43820

Please sign in to comment.