-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (53 loc) · 1.97 KB
/
ha-config-test.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
---
name: Home Assistant CI
# yamllint disable-line rule:truthy
on:
push:
pull_request:
branches: [master, main]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
#yamllint:
# name: 🧹 yamllint
# runs-on: ubuntu-latest
# steps:
# - name: ⤵️ Check out configuration from GitHub
# uses: actions/[email protected]
# - name: 🚀 Run yamllint
# uses: frenck/[email protected]
# continue-on-error: true
#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:
# args: "remark --no-stdout --color --frail --use preset-lint-recommended ."
home-assistant:
name: "Home Assistant Core ${{ matrix.version }} Configuration Check"
#needs: [yamllint]
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out configuration from GitHub
uses: actions/[email protected]
- name: Rename Dummy files and remove custom component stuff for config check
run: |
mv -f dummy_files/custom_components_dummy.yaml custom_components.yaml
mv -f dummy_files/Homeassistant-SmartLife-Dummy.json Homeassistant_google_assistant.json
rm -r -f switch/switch_custom_components.yaml
rm -r -f sensor/sensor_custom_components.yaml
rm -r -f light/light_custom_components.yaml
rm -r -f notify/notify_custom_components.yaml
rm -r -f device_tracker/device_tracker_custom_components.yaml
sed -n '/## Custom Components/q;p' < configuration.yaml > configuration.yaml
- name: 🚀 Run Home Assistant Configuration Check
uses: frenck/[email protected]
with:
path: "."
secrets: ./secrets.fake.yaml
version: "beta"