hassio-conf/.woodpecker/test.yml
Robert Kaussow 61d517a6ad
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/notify Pipeline was successful
debug: test test log parsing
2024-10-18 11:54:28 +02:00

32 lines
758 B
YAML

---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
variables:
- &pytest_base
depends_on: []
commands:
- |
output=$(hass -c $CI_WORKSPACE --script check_config 2>&1)
filtered_output=$(echo "$output" | grep "ERROR" | grep -v "Unknown device")
echo "$filtered_output"
if [ -n "$filtered_output" ]; then
echo "Configuration check failed"
exit 1
fi
environment:
HA_RECORDER_DB_URL: dummy
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