mirror of
https://github.com/esphome/esphome.git
synced 2026-09-27 15:00:24 +00:00
Add github actions (#1125)
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
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
|
||||
Reference in New Issue
Block a user