Skip to content

Build CI

Build CI #628

Workflow file for this run

name: Build CI
on:
pull_request:
branches: [main]
schedule:
- cron: "0 8 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
build-ci:
name: Building ${{ matrix.file }} / ${{ matrix.esphome-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
file:
- deye_hybrid_3p_lv
- deye_hybrid_3p_hv
- deye_hybrid_1p_lv
esphome-version:
- stable
- beta
- dev
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Copy test files to main directory
run: |
if [ -d "tests/" ]; then
cp -r tests/* .
echo "Copied files from tests/ to main directory"
else
echo "ERROR: tests/ directory not found"
exit 1
fi
- name: ESPHome ${{ matrix.esphome-version }}
uses: esphome/build-action@v7
with:
yaml-file: ${{ matrix.file }}.yaml
version: ${{ matrix.esphome-version }}