2021-02-08 16:28:24 +01:00
|
|
|
name: Lint
|
2021-07-29 10:14:20 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
2021-02-08 16:28:24 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Add-on configuration
|
|
|
|
runs-on: ubuntu-latest
|
2021-02-08 17:53:33 +01:00
|
|
|
strategy:
|
2021-07-29 10:14:20 +02:00
|
|
|
matrix:
|
|
|
|
channels:
|
|
|
|
- folder: esphome
|
|
|
|
channel: stable
|
|
|
|
- folder: esphome-beta
|
|
|
|
channel: beta
|
|
|
|
- folder: esphome-dev
|
|
|
|
channel: dev
|
2021-02-08 16:28:24 +01:00
|
|
|
steps:
|
|
|
|
- name: ⤵️ Check out code from GitHub
|
2024-10-18 09:32:31 +02:00
|
|
|
uses: actions/checkout@v4.2.1
|
2021-02-14 20:28:48 +01:00
|
|
|
- name: 🛠 Setup Python
|
2024-09-27 23:08:42 +02:00
|
|
|
uses: actions/setup-python@v5.2.0
|
2021-02-14 20:28:48 +01:00
|
|
|
with:
|
2023-10-30 23:55:56 +01:00
|
|
|
python-version: '3.11'
|
2021-02-14 20:28:48 +01:00
|
|
|
- name: 🛠 Install dependencies
|
|
|
|
run: pip install -r script/requirements.txt
|
|
|
|
- name: 🛠 Generate files from template
|
2021-07-29 10:14:20 +02:00
|
|
|
run: python script/generate.py ${{ matrix.channels.channel }}
|
|
|
|
- name: 🚀 Run Home Assistant Add-on Lint on ${{ matrix.channels.channel }}
|
2024-10-19 10:44:34 +02:00
|
|
|
uses: frenck/action-addon-linter@v2.17.1
|
2021-02-08 16:28:24 +01:00
|
|
|
with:
|
2021-07-29 10:14:20 +02:00
|
|
|
path: "./${{ matrix.channels.folder }}"
|