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

View File

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