From 8b28285c0f111cdf66d67b8bd959f1867f1e0977 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 18 Oct 2024 10:39:03 +0200 Subject: [PATCH] ci: test config against hassio latest and dev --- .woodpecker/notify.yml | 26 ++++++++++++++++++++++++++ .woodpecker/test.yml | 23 +++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .woodpecker/notify.yml create mode 100644 .woodpecker/test.yml diff --git a/.woodpecker/notify.yml b/.woodpecker/notify.yml new file mode 100644 index 0000000..0ad2dcd --- /dev/null +++ b/.woodpecker/notify.yml @@ -0,0 +1,26 @@ +--- +when: + - event: [tag] + - event: [push, manual] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + +runs_on: [failure] + +steps: + - name: matrix + image: quay.io/thegeeklab/wp-matrix + settings: + homeserver: + from_secret: matrix_homeserver + room_id: + from_secret: matrix_room_id + user_id: + from_secret: matrix_user_id + access_token: + from_secret: matrix_access_token + when: + - status: [success, failure] + +depends_on: + - test diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml new file mode 100644 index 0000000..b5c59fa --- /dev/null +++ b/.woodpecker/test.yml @@ -0,0 +1,23 @@ +--- +when: + - event: [pull_request, tag] + - event: [push, manual] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + +variables: + - &pytest_base + depends_on: [] + commands: + - hass -c ${CI_WORKSPACE} --script check_config + environment: + PY_COLORS: "1" + +steps: + - name: hassio-dev + image: ghcr.io/home-assistant/home-assistant:dev + <<: *pytest_base + + - name: hassio-latest + image: ghcr.io/home-assistant/home-assistant:latest + <<: *pytest_base