-
Notifications
You must be signed in to change notification settings - Fork 2
94 lines (92 loc) · 3.08 KB
/
main.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
name: Home Assistant
# yamllint disable-line rule:truthy
on:
push:
pull_request:
schedule:
- cron: 0 12 * * *
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v4
- name: Running YAMLlint
uses: ibiqlik/action-yamllint@v3
continue-on-error: false
with:
config_file: .github/yamllint-config.yml
remarklint:
runs-on: ubuntu-latest
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v4
- name: Running Remark lint
uses: "docker://pipelinecomponents/remark-lint:latest"
continue-on-error: false
with:
args: "remark --no-stdout --color --frail --use preset-lint-recommended ."
home_assistant_stable:
runs-on: ubuntu-latest
needs: [yamllint, remarklint]
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v4
- name: Copy stub files into configuration folder
run: |
cp -R travis_secrets.yaml secrets.yaml
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@v4
- name: Copy stub files into configuration folder
run: |
cp -R travis_secrets.yaml secrets.yaml
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_rc:
runs-on: ubuntu-latest
needs: [yamllint, remarklint]
steps:
- name: Getting your configuration from GitHub
uses: actions/checkout@v4
- name: Copy stub files into configuration folder
run: |
cp -R travis_secrets.yaml secrets.yaml
sudo mkdir -p /github/workspace/tmp
sudo touch fullchain.pem
sudo touch privkey.pem
- name: Home Assistant Version
uses: "docker://homeassistant/home-assistant:rc"
with:
args: |
python -m homeassistant --version
- name: Home Assistant Check
uses: "docker://homeassistant/home-assistant:rc"
with:
args: python -m homeassistant --config ./ --script check_config --info all