More examples added to CI 2 #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
- esphome_climate_example.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 | |
- uart_sniffer.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 }} |