Skip to content

Commit

Permalink
tools: add hassfest GitHub actions to validate the integration (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
palazzem authored Sep 1, 2023
1 parent cb88cd1 commit 1515859
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/hassfest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Validate with hassfest

on:
workflow_dispatch:
push:
branches:
- main
pull_request:

permissions:
contents: read

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
hassfest:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v3

- name: Test hassfest
uses: home-assistant/actions/hassfest@master
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ repos:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude: custom_components/econnect_alarm/manifest.json
- id: mixed-line-ending
- id: trailing-whitespace

Expand Down
20 changes: 13 additions & 7 deletions custom_components/econnect_alarm/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{
"domain": "econnect_alarm",
"name": "E-connect Alarm",
"version": "0.0.5",
"after_dependencies": [],
"codeowners": [
"@palazzem"
],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/palazzem/ha-econnect-alarm",
"integration_type": "device",
"iot_class": "cloud_polling",
"documentation": "https://www.home-assistant.io/integrations/econnect_alarm",
"issue_tracker": "https://github.com/palazzem/ha-econnect-alarm/issues",
"loggers": [
"custom_components.econnect_alarm"
],
"requirements": [
"econnect-python==0.5.1"
],
"dependencies": [],
"codeowners": [
"@palazzem"
]
}
"version": "0.0.5"
}

0 comments on commit 1515859

Please sign in to comment.