mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-19 18:31:52 +00:00
user reporting slow/no connection/timeout errors on armv6l for calendar, and newsfeed we can increase the timeout by adding calls to the undici lib, but it requires node 20.18.1 or above. this adds the support for timeout (also environment variable to override if needed,, mmFetchTimeout (default 30 seconds) and updates the base node version
31 lines
926 B
YAML
31 lines
926 B
YAML
name: "Electron Rebuild Testing"
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
rebuild:
|
|
name: Run electron-rebuild
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [20.18.1, 20.x, 22.x, 23.x]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: "Use Node.js ${{ matrix.node-version }}"
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
check-latest: true
|
|
- name: Install MagicMirror
|
|
run: npm run install-mm
|
|
- name: Install @electron/rebuild
|
|
run: npm install @electron/rebuild
|
|
- name: Install node-libgpiod deps
|
|
run: sudo apt-get install gpiod libgpiod2 libgpiod-dev
|
|
- name: Install test library (node-libgpiod) to be rebuilded
|
|
run: npm install node-libgpiod
|
|
- name: Run electron-rebuild
|
|
run: npx electron-rebuild
|
|
continue-on-error: false
|