Skip to content

Only run CI when ci workflow or root yaml files are changed #24

Only run CI when ci workflow or root yaml files are changed

Only run CI when ci workflow or root yaml files are changed #24

Workflow file for this run

name: CI
on:
pull_request:
paths:
- '*.yaml'
- '.github/workflows/ci.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
ci:
name: Building ${{ matrix.file }} / ${{ matrix.esphome-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
file:
- project-template-esp32
- project-template-esp32-c3
- project-template-esp32-s3
esphome-version:
- stable
- beta
- dev
steps:
- name: Checkout source code
uses: actions/[email protected]
- name: ESPHome ${{ matrix.esphome-version }}
uses: esphome/[email protected]
with:
yaml-file: ${{ matrix.file }}.yaml
version: ${{ matrix.esphome-version }}
- name: ESPHome ${{ matrix.esphome-version }} Factory
uses: esphome/[email protected]
with:
yaml-file: ${{ matrix.file }}.factory.yaml
version: ${{ matrix.esphome-version }}