Skip to content

fix(enphase): Fix according to first feedback #524

fix(enphase): Fix according to first feedback

fix(enphase): Fix according to first feedback #524

name: ESPHome Compilation
on:
push:
pull_request:
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install ESPHome
run: |
python -m pip install --upgrade pip
pip install esphome
- name: Compile esp8266-proxy-client.yaml
continue-on-error: true
run: tools/convert_to_local_source.py --ci esp8266-proxy-client.yaml && esphome compile work_in_progress.yaml
id: conf1
- name: Compile wt32-eth01-solar-water-heater.yaml
continue-on-error: true
run: tools/convert_to_local_source.py --ci wt32-eth01-solar-water-heater.yaml && esphome compile work_in_progress.yaml
id: conf2
- name: Compile esp8266-standalone_on_off.yaml
continue-on-error: true
run: tools/convert_to_local_source.py --ci esp8266-standalone_on_off.yaml && esphome compile work_in_progress.yaml
id: conf3
- name: Compile esp8285-power-meter-proxy.yaml
continue-on-error: true
run: tools/convert_to_local_source.py --ci esp8285-power-meter-proxy.yaml && esphome compile work_in_progress.yaml
id: conf4
- name: Compile esp32-s3-power-meter-proxy.yaml
continue-on-error: true
run: tools/convert_to_local_source.py --ci esp32-s3-power-meter-proxy.yaml && esphome compile work_in_progress.yaml
id: conf5
- name: Check for compile errors
run: |
if [ ${{ steps.conf1.outcome }} == 'failure' ] || [ ${{ steps.conf2.outcome }} == 'failure' || ${{ steps.conf3.outcome }} == 'failure' ] || [ ${{ steps.conf4.outcome }} == 'failure'] || [ ${{ steps.conf5.outcome }} == 'failure']; then
echo "One or more compilations failed"
exit 1
fi