home-assistant-addon/.github/workflows/lint.yml

35 lines
1010 B
YAML
Raw Normal View History

name: Lint
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Add-on configuration
runs-on: ubuntu-latest
strategy:
matrix:
channels:
- folder: esphome
channel: stable
- folder: esphome-beta
channel: beta
- folder: esphome-dev
channel: dev
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
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
with:
path: "./${{ matrix.channels.folder }}"