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
|
2022-07-06 22:08:00 +02:00
|
|
|
uses: actions/checkout@v3.0.2
|
2021-02-14 20:28:48 +01:00
|
|
|
- name: 🛠 Setup Python
|
2022-07-06 22:08:00 +02:00
|
|
|
uses: actions/setup-python@v4
|
2021-02-14 20:28:48 +01:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
- 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 }}
|
2022-07-06 22:08:00 +02:00
|
|
|
uses: frenck/action-addon-linter@v2.9.0
|
2021-02-08 16:28:24 +01:00
|
|
|
with:
|
2021-07-29 10:14:20 +02:00
|
|
|
path: "./${{ matrix.channels.folder }}"
|