-
Notifications
You must be signed in to change notification settings - Fork 16
58 lines (56 loc) · 1.73 KB
/
examples.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Build component for different platforms
name: build examples
on:
push:
branches-ignore: [ "doc_test" ]
pull_request:
branches: [ "master", "dev" , "experimental" ]
jobs:
tests_with_base:
name: Building ${{ matrix.file }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
file:
- max-hon.yaml
- max-smartair2.yaml
- min-hon.yaml
- min-smartair2.yaml
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Install esphome
run: pip3 install -U esphome
- name: Version esphome
run: esphome version
- name: Prepering test file
run: cat docs/examples/.base.yaml docs/examples/${{ matrix.file }} > ./docs/examples/__test__.yaml
- name: Preparing secrets.yaml
run: |
echo "wifi_ssid: test_ssid" > ./docs/examples/secrets.yaml
echo "wifi_password: test_pass" >> ./docs/examples/secrets.yaml
- name: Build ESPHome config
run: esphome compile ./docs/examples/__test__.yaml
tests_without_base:
name: Building ${{ matrix.file }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
file:
- usb_s3.yaml
- usb_c3u.yaml
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Install esphome
run: pip3 install -U esphome
- name: Version esphome
run: esphome version
- name: Preparing secrets.yaml
run: |
echo "wifi_ssid: test_ssid" > ./docs/examples/secrets.yaml
echo "wifi_password: test_pass" >> ./docs/examples/secrets.yaml
- name: Build ESPHome config
run: esphome compile docs/examples/${{ matrix.file }}