add initial dev version of ha addon

This commit is contained in:
joBr99
2023-11-19 12:40:49 +01:00
parent 367bdaf8d6
commit 8fa3a11eb5
152 changed files with 203040 additions and 0 deletions

41
.github/workflows/lint.yaml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * *"
jobs:
find:
name: Find add-ons
runs-on: ubuntu-latest
outputs:
addons: ${{ steps.addons.outputs.addons_list }}
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4.1.1
- name: 🔍 Find add-on directories
id: addons
uses: home-assistant/actions/helpers/find-addons@master
lint:
name: Lint add-on ${{ matrix.path }}
runs-on: ubuntu-latest
needs: find
strategy:
matrix:
path: ${{ fromJson(needs.find.outputs.addons) }}
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4.1.1
- name: 🚀 Run Home Assistant Add-on Lint
uses: frenck/action-addon-linter@v2.15
with:
path: "./${{ matrix.path }}"