chore(deps): bump actions/checkout from 3 to 4 #56
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: Check HA config | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
push: | |
branches: | |
- live | |
paths: | |
- '**.yaml' | |
- '**.yml' | |
- 'esphome/**/*.h' | |
jobs: | |
yamllint: | |
name: 🧹 Lint YAML files | |
runs-on: ubuntu-latest | |
steps: | |
- id: checkout | |
name: ⤵️ Check out configuration from GitHub | |
uses: actions/checkout@v4 | |
- id: yaml-lint | |
name: 🚀 Run yamllint | |
uses: ibiqlik/action-yamllint@v3 | |
- run: echo ${{ steps.yaml-lint.outputs.logfile }} | |
- id: upload | |
name: ⤴️ Upload results | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: yamllint-logfile | |
path: ${{ steps.yaml-lint.outputs.logfile }} | |
home-assistant: | |
name: 🏠 Home Assistant configuration check | |
needs: [yamllint] | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⤵️ Check out configuration from GitHub | |
uses: actions/checkout@v4 | |
- name: 🚀 Run Home Assistant configuration check | |
uses: frenck/action-home-assistant@v1 | |
with: | |
path: "./" | |
secrets: secrets.yaml.tmpl | |
esphome: | |
name: 🏘️ ESPHome configuration check | |
runs-on: ubuntu-latest | |
needs: [yamllint] | |
steps: | |
- name: ⤵️ Check out configuration from GitHub | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install esphome | |
pip list | |
esphome version | |
- name: Copy secrets.yaml.tmpl into place for secrets.yaml | |
run: cp secrets.yaml.tmpl secrets.yaml | |
working-directory: "./esphome" | |
- name: 🚀 Run ESPHome config check on all files | |
# yamllint disable rule:line-length | |
run: | | |
for file in $(find ./esphome -type f -name "*.yaml" -maxdepth 1 -not -name "secrets.yaml"); do esphome config "${file}"; done |