Run test only on pull request or push to main

This commit is contained in:
Edward Firmo
2024-12-23 18:47:41 +01:00
parent 226d5db7c8
commit 420225b6ba
2 changed files with 10 additions and 3 deletions

View File

@@ -1,8 +1,7 @@
---
name: Validate ESPHome
name: Validate ESPHome (Latest)
# yamllint disable-line rule:truthy
on:
on: # yamllint disable-line rule:truthy
workflow_dispatch:
concurrency:
@@ -37,6 +36,7 @@ jobs:
uses: esphome/build-action@main
with:
yaml-file: ".test/esphome_ard_basic.yaml"
version: latest
build_bluetooth_proxy_4:
name: Bluetooth Proxy (IDF)
@@ -47,6 +47,7 @@ jobs:
uses: esphome/build-action@main
with:
yaml-file: ".test/esphome_idf_bluetooth_proxy.yaml"
version: latest
build_bluetooth_proxy_53:
name: Bluetooth Proxy (IDF v5.3)
@@ -57,4 +58,5 @@ jobs:
uses: esphome/build-action@main
with:
yaml-file: ".test/esphome_idf53_bluetooth_proxy.yaml"
version: latest
...

View File

@@ -11,6 +11,11 @@ on: # yamllint disable-line rule:truthy
- "*.c"
- "*.cpp"
- "*.py"
branches:
- main
paths-ignore:
- '**/VERSION'
- '**/VERSION_YAML'
pull_request:
paths:
- "*.yaml"