Skip to content

Commit

Permalink
✨ Add ESPHome config check to CI (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliseomartelli committed Jul 29, 2020
1 parent f108fb3 commit e2616c7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/home-assistant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,26 @@ jobs:
uses: "docker://homeassistant/home-assistant:dev"
with:
args: python -m homeassistant --config ./config/ --script check_config --info all
esphome:
runs-on: ubuntu-latest
needs: [yamllint]
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v1
- name: Checking out code from GitHub
uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
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 stub files into configuration folder
run: cp -R ./.stubs/* ./config/esphome/
- name: Run esphome on all files
run: |
for file in $(find ./config/esphome -type f -name "*.yaml" -not -name "secrets.yaml"); do esphome "${file}" config; done

0 comments on commit e2616c7

Please sign in to comment.