Create CI #1
This file contains hidden or 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: Validate ESPHome boards | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| lint-and-compile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install esphome yamllint | |
| - name: Lint YAML | |
| run: yamllint . | |
| - name: Validate config files | |
| run: esphome config boards/*/demo.yaml | |
| - name: Compile demos | |
| env: | |
| PLATFORMIO_BUILD_CACHE_DIR: /tmp/esphome_cache_${{ github.run_id }} | |
| run: esphome config boards/*/demo.yaml |