-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (44 loc) · 1.32 KB
/
Copy pathci.yml
File metadata and controls
46 lines (44 loc) · 1.32 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
45
46
name: CI
on:
push:
pull_request:
jobs:
test:
name: ${{ matrix.os }} / Node ${{ matrix.node }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
node: [20]
env:
ELECTRON_CACHE: ${{ github.workspace }}/.cache/electron
ELECTRON_GET_USE_PROXY: "true"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Cache Electron binaries
uses: actions/cache@v4
with:
path: ${{ env.ELECTRON_CACHE }}
key: electron-${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
electron-${{ runner.os }}-node-${{ matrix.node }}-
- run: npm ci
- run: npm run check
- run: npm run lint
- run: npm run format:check
- run: npm run docs:cli:check
- run: npm run test:core
- run: npm run build
- name: Verify release packages
run: npm run release:verify
- name: Windows command and launcher regression tests
if: runner.os == 'Windows'
run: npm run test:windows
- name: Benchmarks
if: runner.os == 'Linux'
run: npm run benchmark && npm run benchmark:agent