Skip to content

Commit c5c1602

Browse files
committed
Automated PR merge checks
1 parent 3696824 commit c5c1602

File tree

5 files changed

+71
-1
lines changed

5 files changed

+71
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "ESPHome Devcontainer",
3+
"image": "esphome/esphome:latest",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"esphome.esphome-vscode",
8+
"redhat.vscode-yaml",
9+
"ms-python.python"
10+
]
11+
}
12+
},
13+
"features": {},
14+
"remoteUser": "root",
15+
"workspaceFolder": "/workspaces/esphome_components"
16+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.github/workflows/build-matrix.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# .github/workflows/build-matrix.yml
2+
name: 🧪 Build selected ESPHome YAMLs (Matrix)
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
setup:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Create dummy secrets.yaml
18+
run: |
19+
cat <<EOF > secrets.yaml
20+
wifi_ssid: "dummy_ssid"
21+
wifi_pass: "dummy_pass"
22+
EOF
23+
24+
- name: Upload workspace state
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: esphome-workspace
28+
path: |
29+
.
30+
31+
build:
32+
needs: setup
33+
runs-on: ubuntu-latest
34+
container:
35+
image: esphome/esphome:latest
36+
strategy:
37+
matrix:
38+
yaml_file:
39+
- buderus-km271.yaml
40+
- buderus-km271_en.yaml
41+
42+
steps:
43+
- name: Download prepared workspace
44+
uses: actions/download-artifact@v4
45+
with:
46+
name: esphome-workspace
47+
48+
- name: Compile ${{ matrix.yaml_file }}
49+
run: |
50+
esphome compile "${{ matrix.yaml_file }}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ km271.files
77
km271.includes
88
*~
99
.DS_Store
10+
.esphome

buderus-km271.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
esphome:
22
name: buderus-km271
3-
platform: ESP32
3+
4+
esp32:
45
board: esp32dev
56

67
# Enable logging
@@ -10,6 +11,7 @@ logger:
1011
api:
1112

1213
ota:
14+
platform: esphome
1315
password: "put-your-ota-passphrase-here" # Should be auto generated, when device is first created
1416

1517
wifi:

0 commit comments

Comments
 (0)