From: Giorgio Ravera Date: Wed, 8 Apr 2026 06:58:28 +0000 (+0200) Subject: Added custom components to nightly-chech CI X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=2807721dab1a942ea08a2c2783e12d62dbcc3875;p=homeassistant.git Added custom components to nightly-chech CI --- diff --git a/.github/workflows/nightly-check.yaml b/.github/workflows/nightly-check.yaml index b0a98abb..95dfcd39 100644 --- a/.github/workflows/nightly-check.yaml +++ b/.github/workflows/nightly-check.yaml @@ -17,20 +17,71 @@ jobs: version: [ "stable", "beta" ] steps: - - name: ⤵️ Checkout + # --------------------------------------------------------- + # CHECKOUT + # --------------------------------------------------------- + - name: ⤵️ Check out configuration from GitHub uses: actions/checkout@v4 - - name: 🔑 Dummy secrets + # --------------------------------------------------------- + # CACHE PIP + # --------------------------------------------------------- + - name: ♻️ Cache pip + uses: actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + + # --------------------------------------------------------- + # CACHE NPM + # --------------------------------------------------------- + - name: ♻️ Cache npm + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-cache + restore-keys: | + ${{ runner.os }}-npm- + + # --------------------------------------------------------- + # CUSTOM COMPONENTS + # --------------------------------------------------------- + - name: ⤵️ Check out Custom Components + run: | + mkdir -p custom_components/ + # Monitor Docker + git clone https://github.com/ualex73/monitor_docker + mv monitor_docker/custom_components/monitor_docker/ custom_components/ + + # --------------------------------------------------------- + # DUMMY SECRETS + # --------------------------------------------------------- + - name: 🔑 Use dummy files as credentials run: | cp .secrets_dummy.yaml secrets.yaml cp credentials/.google_dummy.json credentials/google.json + # --------------------------------------------------------- + # FETCH HOME ASSISTANT IMAGE + # --------------------------------------------------------- - name: ⤵️ Fetch Home Assistant Docker Image run: | docker pull -q "ghcr.io/home-assistant/home-assistant:${{ matrix.version }}" + # --------------------------------------------------------- + # HOME ASSISTANT CONFIG CHECK + # --------------------------------------------------------- - name: 🚀 Run Home Assistant Configuration Check run: | + # Show Version + docker run --rm \ + -v .:/config \ + "homeassistant/home-assistant:${{ matrix.version }}" \ + python -m homeassistant --version + + # Run check_config docker run --rm \ -v .:/config \ "ghcr.io/home-assistant/home-assistant:${{ matrix.version }}" \