From 55b9b9728b69b7f1e069ccff88197c4eb1d0b323 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sat, 11 Nov 2023 14:14:55 +0100 Subject: [PATCH 1/5] Create validate_esphome_beta.yml --- .github/workflows/validate_esphome_beta.yml | 123 ++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 .github/workflows/validate_esphome_beta.yml diff --git a/.github/workflows/validate_esphome_beta.yml b/.github/workflows/validate_esphome_beta.yml new file mode 100644 index 0000000..dc33f77 --- /dev/null +++ b/.github/workflows/validate_esphome_beta.yml @@ -0,0 +1,123 @@ +name: Validate ESPHome (beta) + +on: + #push: + #paths: + #- "nspanel_esphome*.yaml" + #pull_request: + #schedule: + # - cron: "0 0 * * *" + workflow_dispatch: + +concurrency: + # yamllint disable-line rule:line-length + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + code_scan: + name: Code scan (YAML) + runs-on: "ubuntu-latest" + steps: + - uses: actions/checkout@v4.1.0 + - name: Validate nspanel_esphome.yaml + run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome.yaml + - name: Validate nspanel_esphome_advanced.yaml + run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_advanced.yaml + - name: Validate nspanel_esphome_addon_climate_cool.yaml + run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_addon_climate_cool.yaml + - name: Validate nspanel_esphome_addon_climate_heat.yaml + run: yamllint -c "./.yamllint/rules.yml" nspanel_esphome_addon_climate_heat.yaml + + build_core: + name: Core + runs-on: "ubuntu-latest" + needs: + - code_scan + steps: + - uses: actions/checkout@v4.1.0 + - name: Build core + uses: esphome/build-action@v1.8.0 + with: + yaml_file: "./.test/esphome_core.yaml" + version: beta + + build_advanced: + name: Advanced + runs-on: "ubuntu-latest" + needs: + - build_core + steps: + - uses: actions/checkout@v4.1.0 + - name: Build core+advanced + uses: esphome/build-action@v1.8.0 + with: + yaml_file: "./.test/esphome_advanced.yaml" + version: beta + + build_climate_heat: + name: Climate (heat) + runs-on: "ubuntu-latest" + needs: + - build_core + steps: + - uses: actions/checkout@v4.1.0 + - name: Build core+climate_heat + uses: esphome/build-action@v1.8.0 + with: + yaml_file: "./.test/esphome_climate_heat.yaml" + version: beta + + build_climate_cool: + name: Climate (cool) + runs-on: "ubuntu-latest" + needs: + - build_core + steps: + - uses: actions/checkout@v4.1.0 + - name: Build core+climate_cool + uses: esphome/build-action@v1.8.0 + with: + yaml_file: "./.test/esphome_climate_cool.yaml" + version: beta + + build_climate_heat_advanced: + name: Advanced+climate (heat) + runs-on: "ubuntu-latest" + needs: + - build_climate_heat + - build_advanced + steps: + - uses: actions/checkout@v4.1.0 + - name: Build core+advanced+climate_heat + uses: esphome/build-action@v1.8.0 + with: + yaml_file: "./.test/esphome_advanced_climate_heat.yaml" + version: beta + + build_climate_cool_advanced_esp_idf: + name: esp-idf & Bluetooth proxy + runs-on: "ubuntu-latest" + needs: + - build_climate_cool + - build_advanced + steps: + - uses: actions/checkout@v4.1.0 + - name: Build core+advanced+climate_cool+esp_idf + uses: esphome/build-action@v1.8.0 + with: + yaml_file: "./.test/esphome_advanced_climate_cool_esp_idf.yaml" + version: beta + + #build_climate_cool_advanced_esp_idf5: + # name: esp-idf v5 & Bluetooth proxy + # runs-on: "ubuntu-latest" + # needs: + # - build_climate_cool + # - build_advanced + # steps: + # - uses: actions/checkout@v4.1.0 + # - name: Build core+advanced+climate_cool+esp_idf + # uses: esphome/build-action@v1.8.0 + # with: + # yaml_file: "./.test/esphome_advanced_climate_cool_esp_idf5.yaml" From 40282b2e149a10bba55a9860b76f726c36ced299 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sat, 11 Nov 2023 14:21:10 +0100 Subject: [PATCH 2/5] Add scheduled --- .github/workflows/validate_esphome_beta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate_esphome_beta.yml b/.github/workflows/validate_esphome_beta.yml index dc33f77..4e11a8e 100644 --- a/.github/workflows/validate_esphome_beta.yml +++ b/.github/workflows/validate_esphome_beta.yml @@ -4,9 +4,9 @@ on: #push: #paths: #- "nspanel_esphome*.yaml" - #pull_request: - #schedule: - # - cron: "0 0 * * *" + pull_request: + schedule: + - cron: "0 0 * * *" workflow_dispatch: concurrency: From d6cc901937fd3e3b9c1b3fd1919bb25a5bcb179f Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sat, 11 Nov 2023 14:28:04 +0100 Subject: [PATCH 3/5] Trigger on push --- .github/workflows/validate_esphome_beta.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate_esphome_beta.yml b/.github/workflows/validate_esphome_beta.yml index 4e11a8e..c1135f5 100644 --- a/.github/workflows/validate_esphome_beta.yml +++ b/.github/workflows/validate_esphome_beta.yml @@ -1,7 +1,7 @@ name: Validate ESPHome (beta) on: - #push: + push: #paths: #- "nspanel_esphome*.yaml" pull_request: From 06ac511ae6ed0658054fba005c314fb0bb3a2258 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sat, 11 Nov 2023 14:45:46 +0100 Subject: [PATCH 4/5] Don't run on push --- .github/workflows/validate_esphome_beta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate_esphome_beta.yml b/.github/workflows/validate_esphome_beta.yml index c1135f5..df34de6 100644 --- a/.github/workflows/validate_esphome_beta.yml +++ b/.github/workflows/validate_esphome_beta.yml @@ -1,12 +1,12 @@ name: Validate ESPHome (beta) on: - push: + #push: #paths: #- "nspanel_esphome*.yaml" pull_request: - schedule: - - cron: "0 0 * * *" + #schedule: + #- cron: "0 0 * * *" workflow_dispatch: concurrency: From 7f9fd4c81917b1dfe4cb213497dd7d5912b012c5 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sat, 11 Nov 2023 23:48:40 +0100 Subject: [PATCH 5/5] Reorg things --- .github/workflows/validate_esphome_beta.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate_esphome_beta.yml b/.github/workflows/validate_esphome_beta.yml index df34de6..cdab127 100644 --- a/.github/workflows/validate_esphome_beta.yml +++ b/.github/workflows/validate_esphome_beta.yml @@ -1,13 +1,13 @@ name: Validate ESPHome (beta) on: + workflow_dispatch: + pull_request: #push: #paths: #- "nspanel_esphome*.yaml" - pull_request: #schedule: #- cron: "0 0 * * *" - workflow_dispatch: concurrency: # yamllint disable-line rule:line-length