-
-
Notifications
You must be signed in to change notification settings - Fork 53
129 lines (127 loc) · 4.48 KB
/
main.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
name: Home Assistant CI
# yamllint disable-line rule:truthy
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: 0 12 * * *
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v3
- name: Running YAMLlint
uses: ibiqlik/action-yamllint@v1
continue-on-error: true
with:
config_file: .github/yamllint-config.yml
remarklint:
runs-on: ubuntu-latest
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v3
- name: Running Remark lint
uses: "docker://pipelinecomponents/remark-lint:latest"
continue-on-error: true
with:
args: "remark --no-stdout --color --frail --use preset-lint-recommended ."
home_assistant_current:
runs-on: ubuntu-latest
needs: [yamllint, remarklint]
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Copy stub files into configuration folder
run: |
cp -R secrets_github.yaml secrets.yaml
cp -R customize_sample.yaml customize.yaml
cp -R service_account_ga_sample.json service_account_ga.json
sudo mkdir -p /github/workspace/tmp
#sudo touch fullchain.pem
#sudo touch privkey.pem
HA_VERSION=$(<.HA_VERSION)
- name: Install Home Assistant
run: pip3 install homeassistant==$(cat .HA_VERSION)
- name: Check config
run: hass -c . --script check_config --info all
home_assistant_stable:
runs-on: ubuntu-latest
needs: [yamllint, remarklint]
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Copy stub files into configuration folder
run: |
cp -R secrets_github.yaml secrets.yaml
cp -R customize_sample.yaml customize.yaml
cp -R service_account_ga_sample.json service_account_ga.json
sudo mkdir -p /github/workspace/tmp
sudo touch fullchain.pem
sudo touch privkey.pem
- name: Home Assistant Version
uses: "docker://homeassistant/home-assistant:stable"
with:
args: |
python -m homeassistant --version
- name: Home Assistant Check
uses: "docker://homeassistant/home-assistant:stable"
with:
args: python -m homeassistant --config ./ --script check_config --info all
home_assistant_beta:
runs-on: ubuntu-latest
needs: [yamllint, remarklint]
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v3
- name: Copy stub files into configuration folder
run: |
cp -R secrets_github.yaml secrets.yaml
cp -R customize_sample.yaml customize.yaml
cp -R service_account_ga_sample.json service_account_ga.json
sudo mkdir -p /github/workspace/tmp
sudo touch fullchain.pem
sudo touch privkey.pem
- name: Home Assistant Version
uses: "docker://homeassistant/home-assistant:beta"
with:
args: |
python -m homeassistant --version
- name: Home Assistant Check
uses: "docker://homeassistant/home-assistant:beta"
with:
args: python -m homeassistant --config ./ --script check_config --info all
home_assistant_dev:
runs-on: ubuntu-latest
needs: [yamllint, remarklint]
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v3
- name: Copy stub files into configuration folder
run: |
cp -R secrets_github.yaml secrets.yaml
cp -R customize_sample.yaml customize.yaml
cp -R service_account_ga_sample.json service_account_ga.json
sudo mkdir -p /github/workspace/tmp
sudo touch fullchain.pem
sudo touch privkey.pem
- name: Home Assistant Version
uses: "docker://homeassistant/home-assistant:dev"
with:
args: |
python -m homeassistant --version
- name: Home Assistant Check
uses: "docker://homeassistant/home-assistant:dev"
continue-on-error: true
with:
args: python -m homeassistant --config ./ --script check_config --info all