Skip to content

Code formated according to ESPHome requirements #78

Code formated according to ESPHome requirements

Code formated according to ESPHome requirements #78

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:
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 }}