mirror of
https://github.com/esphome/home-assistant-addon.git
synced 2024-11-09 09:59:46 +01:00
25 lines
796 B
YAML
25 lines
796 B
YAML
name: Lint
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
name: Add-on configuration
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
channel: [esphome, esphome-beta, esphome-dev]
|
|
steps:
|
|
- name: ⤵️ Check out code from GitHub
|
|
uses: actions/checkout@v2
|
|
- 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
|
|
- name: 🚀 Run Home Assistant Add-on Lint on ${{ matrix.channel }}
|
|
uses: frenck/action-addon-linter@v2
|
|
with:
|
|
path: "./${{ matrix.channel }}"
|