Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches: [main]
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

permissions:
Expand All @@ -19,8 +17,27 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Verify integration manifest
run: |
set -euo pipefail
manifest="custom_components/openspeedtest_cli/manifest.json"
test -f "$manifest"
python3 - <<'PY'
import json
from pathlib import Path

data = json.loads(Path("custom_components/openspeedtest_cli/manifest.json").read_text())
required = ("domain", "name", "documentation", "codeowners", "iot_class", "version")
missing = [key for key in required if key not in data]
if missing:
raise SystemExit(f"manifest.json missing keys: {', '.join(missing)}")
if data["domain"] != "openspeedtest_cli":
raise SystemExit(f"unexpected domain: {data['domain']}")
print(f"manifest ok: domain={data['domain']} version={data['version']}")
PY

- name: HACS Action
uses: hacs/action@main
uses: hacs/action@1ebf01c408f29afcb6406bd431bc98fd8cbb15aa
with:
category: integration

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `brand/icon@2x.png` (512×512)
- `brand/logo.png` (256×128)
- `brand/logo@2x.png` (512×256)
- GitHub Actions: HACS validation and Hassfest on every push, PR and daily.
- GitHub Actions: HACS validation and Hassfest on every push and PR.
- Automatic GitHub release when pushing a `v*` tag.
- `CHANGELOG.md`.

Expand Down
Loading