hassio-conf/.woodpecker/test.yml
Robert Kaussow 65a29051e4
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:44:11 +02:00

37 lines
885 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)
echo "$output"
error_found=false
while IFS= read -r line; do
if echo "$line" | grep -q "ERROR" && ! echo "$line" | grep -q "Unknown device"; then
error_found=true
echo "Error found: $line"
fi
done <<< "$output"
if [ "$error_found" = true ]; then
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