Skip to content

Commit

Permalink
Fix issues with GitHub Actions (#1542)
Browse files Browse the repository at this point in the history
* Resolve issues with GitHub actions

* Update build.yml

Remove Node 20 support

* Update test.yml and temporarily remove Node 20

* Update win32.ts
  • Loading branch information
NorthernMan54 authored Sep 19, 2023
1 parent 516b908 commit e2ed5fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:

uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@main
with:
enable_coverage: true
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:
Expand All @@ -27,20 +29,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [18.x, 20.x]
node-version: [18.x]
include:
- os: macos-latest
node-version: 18.x
- os: macos-latest
node-version: 20.x
- os: windows-2019
node-version: 18.x
- os: windows-2019
node-version: 20.x
- os: windows-latest
node-version: 18.x
- os: windows-latest
node-version: 20.x

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

Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x, 20.x]
node-version: [18.x]
include:
- os: macos-latest
node-version: 18.x
- os: macos-latest
node-version: 20.x
- os: windows-2019
node-version: 18.x
- os: windows-2019
node-version: 20.x
- os: windows-latest
node-version: 18.x
- os: windows-latest
node-version: 20.x

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

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/bin/platforms/win32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class Win32Installer extends BasePlatform {
* This is used to create the Windows Services
*/
private async downloadNssm(): Promise<string> {
const downloadUrl = `https://github.com/homebridge/nssm/releases/download/2.24-101-g897c7ad/nssm_${os.arch()}.exe`;
const downloadUrl = `https://github.com/oznu/nssm/releases/download/2.24-101-g897c7ad/nssm_${os.arch()}.exe`;
const nssmPath = path.resolve(this.hbService.storagePath, 'nssm.exe');

if (await fs.pathExists(nssmPath)) {
Expand Down

0 comments on commit e2ed5fc

Please sign in to comment.