Skip to content

Commit

Permalink
improvements to GH actions and build processes
Browse files Browse the repository at this point in the history
Co-Authored-By: Northern Man <[email protected]>
  • Loading branch information
bwp91 and NorthernMan54 committed Jan 7, 2025
1 parent 082866d commit b0f4163
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,30 @@ on:
branches: [beta-*.*.*, beta]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
build_and_test:
name: Build and run npm test
strategy:
fail-fast: false
matrix:
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]

uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: false
# # 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}
# # Coveralls only expects to create a report once per build
runs_on: ${{ matrix.os }}
install_cmd: npm ci && cd ui && npm ci
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

publish:
needs: [build_and_test]
if: ${{ github.repository == 'homebridge/homebridge-config-ui-x' }}
uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
with:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Platform Run Validation
name: Validate release package across all supported platforms / Node.js versions

on:
push:
Expand All @@ -8,13 +8,17 @@ on:
types: [review_requested, ready_for_review]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
build_and_test:
name: Build and run npm test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2019]
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]

uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
Expand All @@ -33,7 +37,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
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]
node-version: [18.x, 20.x, 22.x]

runs-on: ${{ matrix.os }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Plugin developers:
- retire use of `pnpm` and code references
- bump the default node version from 20 to 22
- make terminal enabled by default on new macOS hb-service installs
- improvements to GH actions and build processes (@NorthernMan54)

### Homebridge Dependencies

Expand Down

0 comments on commit b0f4163

Please sign in to comment.