Skip to content

Commit 5b5549b

Browse files
committed
Update workflow
1 parent 8a89a83 commit 5b5549b

File tree

4 files changed

+38
-23
lines changed

4 files changed

+38
-23
lines changed

.github/arduino-component.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
packages:
2+
common: !include shared.yaml
3+
4+
esp32:
5+
board: "esp32dev"
6+
framework:
7+
type: arduino
8+
version: 2.0.16
9+
platform_version: 6.7.0

.github/idf-component.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
packages:
2+
common: !include shared.yaml
3+
4+
esp32:
5+
board: "esp32dev"
6+
framework:
7+
type: esp-idf

.github/test-config.yaml .github/shared.yaml

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
---
21
esphome:
32
name: test-nuki
43

5-
esp32:
6-
board: "esp32dev"
7-
framework:
8-
type: esp-idf
9-
version: recommended
10-
114
wifi:
125
ssid: "My Network"
136
password: "My Password"
147

158
api:
169

10+
logger:
11+
1712
external_components:
1813
- source:
1914
type: local

.github/workflows/build.yaml

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
---
2-
name: Build Component
1+
name: Build Component
32

4-
on:
5-
push:
6-
pull_request:
3+
on:
4+
push:
5+
pull_request:
76

8-
jobs:
9-
build:
10-
name: Build
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout
14-
uses: actions/[email protected]
7+
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
config:
14+
- file: .github/arduino-component.yaml
15+
- file: .github/idf-component.yaml
16+
steps:
17+
- name: Checkout
18+
uses: actions/[email protected]
1519

16-
- name: Compile Firmware
17-
uses: esphome/[email protected]
18-
with:
19-
yaml-file: .github/test-config.yaml
20+
- name: Compile Firmware
21+
uses: esphome/[email protected]
22+
with:
23+
yaml-file: ${{ matrix.config.file }}

0 commit comments

Comments
 (0)