Skip to content

Tests all components #25

Tests all components

Tests all components #25

Workflow file for this run

name: ESPHome CI
on:
push:
branches: [main]
pull_request:
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
configs: ${{ steps.find.outputs.configs }}
steps:
- uses: actions/checkout@v4
- id: find
shell: bash
run: |
configs=$(find tests -type f \( -name "*.yaml" -o -name "*.yml" \) | sort | jq -R -s -c 'split("\n")[:-1]')
echo "configs=$configs" >> "$GITHUB_OUTPUT"
esphome:
runs-on: ubuntu-latest
needs: prepare
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.prepare.outputs.configs) }}
steps:
- uses: actions/checkout@v4
- name: ESPHome setup
uses: ./.github/actions/esphome-setup
with:
create-secrets: "true"
- name: Validate + Compile
shell: bash
run: |
echo "Config: ${{ matrix.config }}"
esphome config "${{ matrix.config }}"
esphome compile "${{ matrix.config }}"