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
|
2023-10-31 00:03:40 +01:00
|
|
|
uses: actions/checkout@v4.1.1
|
2021-02-14 20:28:48 +01:00
|
|
|
- name: 🛠 Setup Python
|
2024-05-07 10:50:40 +02:00
|
|
|
uses: actions/setup-python@v5.1.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-05-07 10:40:16 +02:00
|
|
|
uses: frenck/action-addon-linter@v2.15.1
|
2021-02-08 16:28:24 +01:00
|
|
|
with:
|
2021-07-29 10:14:20 +02:00
|
|
|
path: "./${{ matrix.channels.folder }}"
|