mirror of
https://github.com/esphome/home-assistant-addon.git
synced 2024-12-18 16:07:57 +01:00
a45a9f6d8a
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
35 lines
1011 B
YAML
35 lines
1011 B
YAML
name: Lint
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
jobs:
|
|
build:
|
|
name: Add-on configuration
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
channels:
|
|
- folder: esphome
|
|
channel: stable
|
|
- folder: esphome-beta
|
|
channel: beta
|
|
- folder: esphome-dev
|
|
channel: dev
|
|
steps:
|
|
- name: ⤵️ Check out code from GitHub
|
|
uses: actions/checkout@v3.3.0
|
|
- name: 🛠 Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.x'
|
|
- name: 🛠 Install dependencies
|
|
run: pip install -r script/requirements.txt
|
|
- name: 🛠 Generate files from template
|
|
run: python script/generate.py ${{ matrix.channels.channel }}
|
|
- name: 🚀 Run Home Assistant Add-on Lint on ${{ matrix.channels.channel }}
|
|
uses: frenck/action-addon-linter@v2.11.0
|
|
with:
|
|
path: "./${{ matrix.channels.folder }}"
|