-
Notifications
You must be signed in to change notification settings - Fork 1
122 lines (114 loc) · 3.9 KB
/
diffy.yml
File metadata and controls
122 lines (114 loc) · 3.9 KB
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
name: Plugwise differences
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
push:
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5.0.0
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
prepare:
runs-on: ubuntu-latest
name: Prepare environment
needs: shellcheck
steps:
- name: Check out our own code
uses: actions/checkout@v5
# - name: Cache base diff environment
# id: base-diff
# uses: actions/cache@v3
# with:
# path: |
# ~/.npm
# clones
# **/node_modules
# key: >-
# ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-${{ hashFiles('scripts/setup.sh') }}-${{ hashFiles('scripts.diffy.sh') }}
# restore-keys: |
# ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-${{ hashFiles('scripts/setup.sh') }}-${{ hashFiles('scripts.diffy.sh') }}
- name: Use Node.js
# if: steps.base-diff.outputs.cache-hit != 'true'
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install diff2html
# if: steps.base-diff.outputs.cache-hit != 'true'
run: npm -g install diff2html-cli diff2html
- name: Checkout HA core
uses: actions/checkout@v5
with:
repository: home-assistant/core
path: clones/beta/ha-core
- name: Checkout Plugwise fork of HA core
uses: actions/checkout@v5
with:
repository: plugwise/home-assistant.core
ssh-key: ${{ secrets.hacore_deploykey }}
path: clones/beta/pw-core
fetch-depth: 0
- name: Checkout beta component (branch-switch)
uses: actions/checkout@v5
with:
repository: plugwise/plugwise-beta
ssh-key: ${{ secrets.plugwise_deploykey }}
path: clones/beta/beta
fetch-depth: 0
- name: Checkout beta component (main-branch)
uses: actions/checkout@v5
with:
repository: plugwise/plugwise-beta
ref: main
ssh-key: ${{ secrets.plugwise_deploykey }}
path: clones/beta-main
- name: Setup SSH Keys and known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.PROGRESS_DEPLOYKEY }}"
- name: Setup clone (beta)
run: scripts/setup.sh beta
- name: Run diff (beta)
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: scripts/diffy.sh beta
- name: Checkout HA core for usb-beta
uses: actions/checkout@v5
with:
repository: home-assistant/core
path: clones/usb-beta/ha-core
- name: Checkout Plugwise fork of HA core for usb-beta
uses: actions/checkout@v5
with:
repository: plugwise/home-assistant.core
ssh-key: ${{ secrets.hacore_deploykey }}
path: clones/usb-beta/pw-core
fetch-depth: 0
- name: Checkout usb-beta component (branch-switch)
uses: actions/checkout@v5
with:
repository: plugwise/plugwise_usb-beta
ssh-key: ${{ secrets.plugwise_deploykey }}
path: clones/usb-beta/usb-beta
fetch-depth: 0
- name: Checkout usb-beta component (main-branch)
uses: actions/checkout@v5
with:
repository: plugwise/plugwise_usb-beta
ref: main
ssh-key: ${{ secrets.plugwise_deploykey }}
path: clones/usb-beta-main
- name: Setup clone (usb-beta)
run: scripts/setup.sh usb-beta
- name: Run diff (usb-beta)
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: scripts/diffy.sh usb-beta
- name: Publish results
run: scripts/update.sh
if: github.event_name != 'pull_request'