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-09-27 20:56:46 +02:00
|
|
|
uses: actions/checkout@v4.2.0
|
2021-02-14 20:28:48 +01:00
|
|
|
- name: 🛠 Setup Python
|
2024-07-20 11:32:43 +02:00
|
|
|
uses: actions/setup-python@v5.1.1
|
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-09-27 20:56:58 +02:00
|
|
|
uses: frenck/action-addon-linter@v2.16.0
|
2021-02-08 16:28:24 +01:00
|
|
|
with:
|
2021-07-29 10:14:20 +02:00
|
|
|
path: "./${{ matrix.channels.folder }}"
|