mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
|
name: PR testing
|
||
|
|
||
|
on: [pull_request]
|
||
|
|
||
|
jobs:
|
||
|
lint-custom:
|
||
|
runs-on: ubuntu-latest
|
||
|
container: jesserockz/esphome-lint
|
||
|
name: Lint Custom
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- run: script/setup
|
||
|
- run: script/ci-custom.py
|
||
|
lint-python:
|
||
|
runs-on: ubuntu-latest
|
||
|
container: jesserockz/esphome-lint
|
||
|
name: Lint Python
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- run: script/setup
|
||
|
- run: script/lint-python
|
||
|
lint-tidy:
|
||
|
runs-on: ubuntu-latest
|
||
|
container: jesserockz/esphome-lint
|
||
|
name: Lint Tidy
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- run: script/setup
|
||
|
- run: pio init --ide atom
|
||
|
- run: script/clang-tidy --all-headers --fix
|
||
|
- run: script/ci-suggest-changes
|
||
|
lint-format:
|
||
|
runs-on: ubuntu-latest
|
||
|
container: jesserockz/esphome-lint
|
||
|
name: Lint Format
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- run: script/setup
|
||
|
- run: script/clang-format -i
|
||
|
- run: script/ci-suggest-changes
|
||
|
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
container: jesserockz/esphome-lint
|
||
|
strategy:
|
||
|
matrix:
|
||
|
test:
|
||
|
- test1
|
||
|
- test2
|
||
|
- test3
|
||
|
- test4
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- run: script/setup
|
||
|
- run: esphome tests/${{ matrix.test }}.yaml compile
|