Skip to content

Commit

Permalink
🤖 improve validate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed May 26, 2022
1 parent ec520f1 commit 880977c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,30 @@ jobs:
with:
category: integration
ignore: hacs

validate-homeassistant:
strategy:
matrix:
channel: [stable, beta, dev]
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
uses: actions/[email protected]

- name: 🛠️ Home Assistant configuration
run: |
mkdir ./test_configuration
cp -r ./custom_components ./test_configuration
echo "default_config:" >> ./test_configuration/configuration.yaml
echo "xiaomi_miot:" >> ./test_configuration/configuration.yaml
echo " language: zh" >> ./test_configuration/configuration.yaml
echo " device_customizes:" >> ./test_configuration/configuration.yaml
echo " brand.device.model:" >> ./test_configuration/configuration.yaml
echo " miot_local: true" >> ./test_configuration/configuration.yaml
- name: 🏡 Home Assistant validation
id: homeassistant
uses: ludeeus/setup-homeassistant@main
with:
tag: ${{ matrix.channel }}
config-dir: test_configuration

0 comments on commit 880977c

Please sign in to comment.