Updated rooms' pictures #161
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: Configuration Validation Check | |
env: | |
VERSION: stable | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Validate Configuration | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⤵️ Check out configuration from GitHub | |
uses: actions/checkout@v3 | |
- name: ⤵️ Check out Custom Components | |
run: | | |
mkdir custom_components/ | |
# Monitor Docker | |
git clone https://github.com/ualex73/monitor_docker | |
mv monitor_docker/custom_components/monitor_docker/ custom_components/ | |
- name: 🔑 Use dummy files as credentials | |
run: | | |
cp .secrets_dummy.yaml secrets.yaml | |
cp credentials/.google_dummy.json credentials/google.json | |
- name: ⤵️ Fetch Home Assistant Docker Image | |
run: | | |
docker pull -q "ghcr.io/home-assistant/home-assistant:$VERSION" | |
- name: 🚀 Run Home Assistant Configuration Check | |
run: | | |
# Show Version | |
docker run --rm \ | |
-v .:/config \ | |
"ghcr.io/home-assistant/home-assistant:$VERSION" \ | |
python -m homeassistant --version | |
# Run check_config | |
docker run --rm \ | |
-v .:/config \ | |
"ghcr.io/home-assistant/home-assistant:$VERSION" \ | |
python -m homeassistant \ | |
--config "/config" \ | |
--script check_config |