-
Notifications
You must be signed in to change notification settings - Fork 2
executable file
·75 lines (61 loc) · 2.07 KB
/
validate-ha-config.yaml
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
---
name: validate Home-Assistant configuration
on: [push] # yamllint disable-line rule:truthy
jobs:
STABLE:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Create dummy files
run: |
mv secrets_dummy.yaml secrets.yaml
touch clock_weather_card.yaml
echo "{}" > service_account.json
- name: Home Assistant Version
uses: "docker://homeassistant/home-assistant:stable"
with:
args: |
python -m homeassistant --version
- name: Home Assistant STABLE configruation validation
uses: "docker://homeassistant/home-assistant:stable"
with:
args: |
python -m homeassistant --config . --script check_config --info all
BETA:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Create dummy files
run: |
mv secrets_dummy.yaml secrets.yaml
touch clock_weather_card.yaml
echo "{}" > service_account.json
- name: Home Assistant Version
uses: "docker://homeassistant/home-assistant:beta"
with:
args: |
python -m homeassistant --version
- name: Home Assistant BETA configruation validation
uses: "docker://homeassistant/home-assistant:beta"
with:
args: |
python -m homeassistant --config . --script check_config --info all
DEV:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Create dummy files
run: |
mv secrets_dummy.yaml secrets.yaml
touch clock_weather_card.yaml
echo "{}" > service_account.json
- name: Home Assistant Version
uses: "docker://homeassistant/home-assistant:dev"
with:
args: |
python -m homeassistant --version
- name: Home Assistant DEV configruation validation
uses: "docker://homeassistant/home-assistant:dev"
with:
args: |
python -m homeassistant --config . --script check_config --info all