--- 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