2021-02-08 16:28:24 +01:00
|
|
|
name: Lint
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Add-on configuration
|
|
|
|
runs-on: ubuntu-latest
|
2021-02-08 17:53:33 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
channel: [esphome, esphome-beta, esphome-dev]
|
2021-02-08 16:28:24 +01:00
|
|
|
steps:
|
|
|
|
- name: ⤵️ Check out code from GitHub
|
|
|
|
uses: actions/checkout@v2
|
2021-02-14 20:28:48 +01:00
|
|
|
- name: 🛠 Setup Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
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 dev beta stable
|
2021-02-08 17:53:33 +01:00
|
|
|
- name: 🚀 Run Home Assistant Add-on Lint on ${{ matrix.channel }}
|
2021-02-08 16:28:24 +01:00
|
|
|
uses: frenck/action-addon-linter@v2
|
|
|
|
with:
|
2021-02-08 17:53:33 +01:00
|
|
|
path: "./${{ matrix.channel }}"
|