From 24e5d7f19d4c5d99df6a43d1befb4772b1260785 Mon Sep 17 00:00:00 2001 From: Ben Isdale Date: Sat, 18 Jul 2026 07:18:50 +1200 Subject: [PATCH] Add CI: hassfest, HACS validation, add-on lint, engine compile check Co-Authored-By: Claude Fable 5 --- .github/workflows/validate.yaml | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/validate.yaml diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml new file mode 100644 index 0000000..66fd0a4 --- /dev/null +++ b/.github/workflows/validate.yaml @@ -0,0 +1,45 @@ +name: Validate + +on: + push: + branches: [main] + pull_request: + schedule: + - cron: "0 3 * * 0" + +jobs: + hassfest: + name: Hassfest (integration) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: home-assistant/actions/hassfest@master + + hacs: + name: HACS validation (integration) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: hacs/action@main + with: + category: integration + ignore: brands + + addon-lint: + name: Add-on lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: frenck/action-addon-linter@v2 + with: + path: "./growscope" + + engine-compile: + name: Engine syntax check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - run: python -m compileall growscope/app custom_components/growscope