home-assistant-addon/.github/workflows/lint.yml
2021-02-15 08:32:55 +13:00

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 }}"