Only run CI when ci workflow or root yaml files are changed #24
Workflow file for this run
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
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 }} |