Repository navigation
59 lines (47 loc) · 1.42 KB
/
Copy pathci.yml
File metadata and controls
59 lines (47 loc) · 1.42 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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
# Registry writes need elevation, but nothing here should ever trigger
# one: unit tests use FakeRegistryClient, and E2E runs with NODE_ENV=test
# (see src/main/index.ts), which swaps in the same fake + a no-op
# elevation runner. This job runs as a normal non-admin user throughout,
# matching how the packaged app itself runs by default.
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Unit tests
run: npm run test
- name: Build
run: npm run build
- name: E2E tests (fake registry, no UAC)
run: npx playwright test
env:
NODE_ENV: test
- name: Upload Playwright report on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7
- name: Package (unsigned)
run: npm run build:win
- name: Upload installer artifact
uses: actions/upload-artifact@v4
with:
name: windows-installer
path: release/*.exe
retention-days: 14