-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (76 loc) · 2.41 KB
/
ha.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
name: Home Assistant CI
# yamllint disable-line rule:truthy
on:
push:
pull_request:
schedule:
- cron: 0 12 * * *
jobs:
yamllint:
name: 🧹 yamllint
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2
- name: 🚀 Run yamllint
run: |
yamllint -c ./.yamllint .
# runs-on: ubuntu-latest
# steps:
# - name: ⤵️ Check out configuration from GitHub
# uses: actions/[email protected]
# - name: 🚀 Run yamllint
# uses: frenck/[email protected]
# with:
# config: "./.yamllint"
remarklint:
runs-on: ubuntu-18.04
steps:
- name: ⤵️ Check out configuration from GitHub
uses: actions/[email protected]
- name: Running Remark lint
uses: "docker://pipelinecomponents/remark-lint:latest"
continue-on-error: true
with:
# yamllint disable rule:line-length
args: "remark --no-stdout --color --frail --use preset-lint-recommended ."
# yamllint enable rule:line-length
home-assistant:
name: "Home Assistant Core ${{ matrix.version }} Configuration Check"
needs: [yamllint]
runs-on: ubuntu-latest
strategy:
matrix:
version: ["stable", "beta", "dev"]
steps:
- name: ⤵️ Check out configuration from GitHub
uses: actions/[email protected]
- name: 🚀 Run Home Assistant Configuration Check
uses: frenck/[email protected]
with:
path: "."
secrets: ./.stubs/secrets.yaml
version: "${{ matrix.version }}"
esphome:
runs-on: ubuntu-latest
needs: [yamllint]
steps:
- name: ⤵️ Check out configuration from GitHub
uses: actions/[email protected]
- name: Set up Python 3.7
uses: actions/[email protected]
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install esphome
pip list
esphome version
- name: Copy stub files into configuration folder
run: cp ./.stubs/esphome_secrets.yaml ./esphome/secrets.yaml
- name: Run esphome on all files
# yamllint disable rule:line-length
run: |
for file in $(find ./esphome -type f -name "*.yaml" -maxdepth 1 -not -name "secrets.yaml"); do esphome "${file}" config; done