Skip to content

Commit acdddf7

Browse files
committed
improvements to GH actions and build processes
By @NorthernMan54
1 parent a4707c3 commit acdddf7

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

.github/workflows/beta-release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,30 @@ on:
55
branches: [beta-*.*.*, beta]
66
workflow_dispatch:
77

8+
concurrency:
9+
group: ${{ github.workflow }}
10+
cancel-in-progress: true
11+
812
jobs:
13+
build_and_test:
14+
name: Build and run npm test
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, macos-latest, macos-15, macos-14, macos-13, windows-latest, windows-2022, windows-2019]
19+
20+
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
21+
with:
22+
enable_coverage: false
23+
# # Code Coverage can only be used in a single run, not in a parallel run - Error: Bad response: 422 {"message":"Can't add a job to a build that is already closed. Build 6224987022 is closed. See docs.coveralls.io/parallel-builds","error":true}
24+
# # Coveralls only expects to create a report once per build
25+
runs_on: ${{ matrix.os }}
26+
install_cmd: npm ci && cd ui && npm ci
27+
secrets:
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
930
publish:
31+
needs: [build_and_test]
1032
if: ${{ github.repository == 'homebridge/homebridge-config-ui-x' }}
1133
uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
1234
with:

.github/workflows/validate.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Platform Run Validation
1+
name: Validate release package across all supported platforms / Node.js versions
22

33
on:
44
push:
@@ -8,13 +8,17 @@ on:
88
types: [review_requested, ready_for_review]
99
workflow_dispatch:
1010

11+
concurrency:
12+
group: ${{ github.workflow }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
build_and_test:
1317
name: Build and run npm test
1418
strategy:
1519
fail-fast: false
1620
matrix:
17-
os: [ubuntu-latest, macos-latest, windows-2019]
21+
os: [ubuntu-latest, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, macos-latest, macos-15, macos-14, macos-13, windows-latest, windows-2022, windows-2019]
1822

1923
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
2024
with:
@@ -33,7 +37,8 @@ jobs:
3337
strategy:
3438
fail-fast: false
3539
matrix:
36-
os: [ubuntu-latest, macos-latest, windows-latest]
40+
os:
41+
[ubuntu-latest, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, macos-latest, macos-15, macos-14, macos-13, windows-latest, windows-2022, windows-2019]
3742
node-version: [18.x, 20.x, 22.x]
3843

3944
runs-on: ${{ matrix.os }}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Plugin developers:
5353
- make terminal enabled by default on new macOS hb-service installs
5454
- update node pty beta `v0.12.0-beta`
5555
- update angular from `v18` to `v19`
56+
- improvements to GH actions and build processes (@NorthernMan54)
5657

5758
### Homebridge Dependencies
5859

0 commit comments

Comments
 (0)