hassio-conf/.woodpecker/test.yml
Robert Kaussow 7cf022d779
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/notify Pipeline was successful
debug
2024-10-18 12:59:34 +02:00

36 lines
841 B
YAML

---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
variables:
- &pytest_base
depends_on: [yamllint]
commands:
- |
output=$(hass -c . --script check_config 2>&1)
filtered_output=$(echo "$output" | grep "ERROR" | grep -v "Unknown device")
if [ -n "$filtered_output" ]; then
echo "$filtered_output"
exit 1
fi
environment:
HA_RECORDER_DB_URL: dummy
PY_COLORS: "1"
steps:
- name: yamllint
image: quay.io/thegeeklab/alpine-tools
commands:
- yamllint --config-file .yamllint --strict .
- 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