Documentation improvements #155
This file contains hidden or 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: | |
| 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/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - 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 | |
| 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/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - 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 }} |