From f0e5f465d48086dd0420bbbb16404e4c523b0d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 30 Jan 2021 14:31:38 +0100 Subject: [PATCH] Update hassfest (#795) --- .github/workflows/checks.yml | 30 +++++++++++++----------------- integration | 2 +- plugin | 2 +- theme | 2 +- 4 files changed, 16 insertions(+), 20 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 5e5e08e..8bc6d15 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -86,29 +86,25 @@ jobs: name: repositories path: /tmp/repositories - - name: Pull Home Assistant Container - run: docker pull homeassistant/home-assistant:beta + - name: Get hassfest action + run: | + git clone --depth 1 https://github.com/home-assistant/actions.git /tmp/actions + echo "::add-matcher::/tmp/actions/hassfest/problem-matcher.json" + + - name: Enable problem-matcher + run: echo "::add-matcher::/tmp/actions/hassfest/problem-matcher.json" + + - name: Build hassfest + run: docker build /tmp/actions/hassfest -f /tmp/actions/hassfest/Dockerfile -t hassfest - name: Run hassfest run: | integration=$(python3 -m scripts.helpers.integration_path) domain=$(python3 -m scripts.helpers.domain) docker run \ - --entrypoint="" \ - -w="/usr/src/homeassistant" \ - -v "$integration":"/$domain" \ - homeassistant/home-assistant:beta \ - /bin/bash -c "\ - python3 -m pip --disable-pip-version-check install \ - pipdeptree==1.0.0 \ - stdlib-list==0.7.0 \ - tqdm==4.48.2 \ - \ - && python3 -m \ - script.hassfest \ - --action validate \ - --integration-path /$domain \ - " + --rm \ + -v "$integration":"/github/workspace/$domain" \ + hassfest hacs: runs-on: ubuntu-latest name: "Run HACS Action" diff --git a/integration b/integration index 00cc654..76fa6ff 100644 --- a/integration +++ b/integration @@ -453,4 +453,4 @@ "zachowj/hass-node-red", "zha-ng/zha-map", "zigul/HomeAssistant-CEZdistribuce" -] +] \ No newline at end of file diff --git a/plugin b/plugin index 9c06218..5596425 100644 --- a/plugin +++ b/plugin @@ -198,4 +198,4 @@ "Villhellm/lovelace-animated-background", "Villhellm/lovelace-clock-card", "Voxxie/lovelace-jumbo-card" -] +] \ No newline at end of file diff --git a/theme b/theme index 8ac4534..b58bf51 100644 --- a/theme +++ b/theme @@ -61,4 +61,4 @@ "Poeschl/slate_red", "seangreen2/slate_theme", "wowgamr/animated-weather-card" -] +] \ No newline at end of file