[test] replace node-libgpiod with serialport in electron-rebuild workflow (#3945)

`node-libgpiod` uses deprecated NAN which is incompatible with Electron
v39+. `serialport` uses N-API ensuring compatibility with current and
future Electron versions.

`node-libgpiod` is only used by 1 of ~1300 3rd-party-modules
(MMM-PresenceScreenControl), while serialport is used by at least 4
modules (MMM-Serial-Notification, MMM-RadarPresence, MMM-LKY-TIC and
MMM-Gestures), making it a better test candidate.

Also updates Electron to v39.

Fixes #3933
This commit is contained in:
Kristjan ESPERANTO
2025-11-04 22:46:20 +01:00
committed by GitHub
parent 67fead74b4
commit 9d713ffd69
4 changed files with 8 additions and 11 deletions

View File

@@ -24,6 +24,7 @@ planned for 2026-01-01
- [calendar] chore: remove `requiresVersion: "2.1.0"` (#3932)
- [tests] migrate from `jest` to `vitest` (#3940, #3941)
- [ci] Add concurrency to automated tests workflow to cancel outdated runs (#3943)
- [tests] replace `node-libgpiod` with `serialport` in electron-rebuild workflow (#3945)
### Fixed