-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (49 loc) · 1.49 KB
/
ci-on-windows.yml
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
60
61
62
63
64
65
66
name: CI on Windows
on:
push:
branches:
- '**' # matches every branch
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for electron-builder
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20.16.0
uses: actions/setup-node@v1
with:
node-version: 20.16.0
- name: npm ci
run: npm ci
- name: npm run lint:ng
run: npm run lint:ng
- name: npm run lint:script
run: npm run lint:script
- name: npm run test:unit:ng
run: npm run test:unit:ng
- name: npm run test:unit:em:main
run: npm run test:unit:em:main
- name: npm run test:unit:em:renderer
run: npm run test:unit:em:renderer
- name: npm run test:package
run: npm run test:package
- name: '[Publish to GitHub Releases] Clean-up by "git clean -fdx" (1st time)'
run: git clean -fdx
- name: '[Publish to GitHub Releases] Clean-up by "git clean -fdx" (2nd time to be sure)'
run: git clean -fdx
- name: '[Publish to GitHub Releases] npm ci'
run: npm ci
- name: '[Publish to GitHub Releases] Create and publish Windows package'
uses: nick-invision/[email protected]
with:
timeout_minutes: 60
max_attempts: 10
retry_on: error
command: npm run publish:windows # To publish, GH_TOKEN environment variable needs to be set.