-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.29 KB
/
nodejs.yml
File metadata and controls
44 lines (41 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
on: [push, pull_request]
name: CI
jobs:
test-node:
name: Node.js ${{ matrix.node-version }} / ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [22.x, 24.x, latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Test
run: npm test
test-electron:
name: Electron ${{ matrix.electron-version }} / ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
electron-version: ['37.10.3', '41.1.1', latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v6
- name: Use Node.js 24.x
uses: actions/setup-node@v6
with:
node-version: 24.x
- name: Install Dependencies
run: npm install
- name: Install Electron and @electron/rebuild
run: npm install --no-save electron@${{ matrix.electron-version }} @electron/rebuild
- name: Rebuild against Electron headers
run: npx electron-rebuild