Skip to content

Commit a06f324

Browse files
committed
feat: adding tests to ensure releases work with Home assistant
1 parent 288095d commit a06f324

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/ha_compatibility_test.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ jobs:
9494
cat > config/configuration.yaml <<'YAML'
9595
logger:
9696
default: info
97-
# If your integration has YAML setup, keep this to make sure it's imported.
98-
uk_bin_collection: {}
9997
YAML
10098
10199
- name: Boot Home Assistant headless and check logs
@@ -124,16 +122,16 @@ jobs:
124122
echo "✅ HA reports: $INIT_MARKER"
125123
break
126124
fi
127-
# bail early if we see a fatal traceback or ERROR from our domain
128-
if grep -Eiq 'Traceback|CRITICAL|Fatal error|ERROR.*(uk_bin_collection|custom_components\.uk_bin_collection)' config/home-assistant.log; then
129-
echo "❌ Error detected in log during startup"
130-
FAIL=1
131-
break
132-
fi
133125
sleep 1
134126
SECS=$((SECS+1))
135127
done
136128
129+
# After boot completes, check for errors in our component
130+
if grep -Eq "Setup failed for custom integration 'uk_bin_collection'" config/home-assistant.log; then
131+
echo "❌ Custom component failed to load"
132+
FAIL=1
133+
fi
134+
137135
# If timeout and no init marker, flag failure
138136
if (( SECS >= TIMEOUT )) && ! grep -q "$INIT_MARKER" config/home-assistant.log; then
139137
echo "❌ HA did not finish booting within ${TIMEOUT}s"

0 commit comments

Comments
 (0)