Skip to content

Help updated

Help updated #106

Workflow file for this run

# Build component for different platforms
name: build examples
on:
push:
branches-ignore: [ "doc_test" ]
pull_request:
branches: [ "master", "dev" , "experimental" ]
jobs:
examples_test:
name: Building ${{ matrix.file.main }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
file:
- {main: max-hon.yaml, additional: "docs/examples/.base.yaml "}
- {main: max-smartair2.yaml, additional: "docs/examples/.base.yaml"}
- {main: min-hon.yaml, additional: "docs/examples/.base.yaml"}
- {main: min-smartair2.yaml, additional: "docs/examples/.base.yaml"}
- {main: esphome_climate_example.yaml, additional: "docs/examples/.base.yaml docs/examples/.uart.yaml"}
- {main: usb_s3.yaml, additional: ""}
- {main: usb_c3u.yaml, additional: ""}
- {main: usb_c6.yaml, additional: ""}
- {main: uart_sniffer.yaml, additional: ""}
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 ${{ matrix.file.additional }} docs/examples/${{ matrix.file.main }} > ./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