Skip to content

Commit bd88579

Browse files
authored
Add workflow to build with ESPHome (#58)
* build workflow * update version * Build only advanced variant * define workflow path trigger
1 parent 8fbc1c8 commit bd88579

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches:
8+
- dev
9+
paths:
10+
- "components/nspanel_lovelace/**"
11+
- ".github/workflows/build.yaml"
12+
- "*example.yaml"
13+
14+
pull_request:
15+
branches:
16+
- dev
17+
paths:
18+
- "components/nspanel_lovelace/**"
19+
- "*example.yaml"
20+
21+
jobs:
22+
test:
23+
name: Build
24+
runs-on: ubuntu-latest
25+
strategy:
26+
fail-fast: false
27+
max-parallel: 2
28+
matrix:
29+
version: [stable]
30+
variant: [advanced-example]
31+
container:
32+
image: ghcr.io/esphome/esphome:${{ matrix.version }}
33+
steps:
34+
- uses: actions/checkout@v6
35+
- name: Copy test secrets
36+
run: |
37+
cp secrets-example.yaml secrets.yaml
38+
- run: esphome compile ${{ matrix.variant }}.yaml

0 commit comments

Comments
 (0)