-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pavlo Dudnytskyi
committed
Sep 16, 2024
1 parent
433286c
commit 360ff08
Showing
15 changed files
with
829 additions
and
480 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,4 +55,14 @@ jobs: | |
- name: Run script and save results | ||
run: python docs/script/process_examples.py docs/examples/sniffing_serial_communication.rst docs/sniffing_serial_communication.tmp | ||
- name: Compare temp file with sniffing_serial_communication.rst | ||
run: diff -u --strip-trailing-cr docs/sniffing_serial_communication.rst docs/sniffing_serial_communication.tmp | ||
run: diff -u --strip-trailing-cr docs/sniffing_serial_communication.rst docs/sniffing_serial_communication.tmp | ||
climate_haier_doc: | ||
name: Check ESPHome climate haier | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
- name: Run script and save results | ||
run: python docs/script/process_examples.py docs/examples/climate_haier.rst docs/climate_haier.tmp no_header | ||
- name: Compare temp file with ESPHome climate haier | ||
run: diff -u --strip-trailing-cr docs/climate_haier.tmp docs/esphome-docs/climate/haier.rst |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,17 +8,21 @@ on: | |
branches: [ "master", "dev" , "experimental" ] | ||
|
||
jobs: | ||
tests_with_base: | ||
name: Building ${{ matrix.file }} | ||
examples_test: | ||
name: Building ${{ matrix.file.main }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
file: | ||
- max-hon.yaml | ||
- max-smartair2.yaml | ||
- min-hon.yaml | ||
- min-smartair2.yaml | ||
- {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: uart_sniffer.yaml, additional: ""} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
@@ -27,33 +31,11 @@ jobs: | |
- name: Version esphome | ||
run: esphome version | ||
- name: Prepering test file | ||
run: cat docs/examples/.base.yaml docs/examples/${{ matrix.file }} > ./docs/examples/__test__.yaml | ||
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/[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 }} | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
esphome: | ||
esphome: | ||
name: esp32-haier-example | ||
|
||
esp32: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
uart: | ||
baud_rate: 9600 | ||
tx_pin: 17 | ||
rx_pin: 16 | ||
id: ac_port |
Oops, something went wrong.