Files
hassio-repository/.github/workflows/lint.yaml
dependabot[bot] f05e84f2b7 Bump actions/checkout from 2.3.5 to 2.4.0 (#22)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-03 07:55:50 +01:00

42 lines
911 B
YAML

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@v2.4.0
- 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@v2.4.0
- name: 🚀 Run Home Assistant Add-on Lint
uses: frenck/action-addon-linter@v2.5
with:
path: "./${{ matrix.path }}"