-
Notifications
You must be signed in to change notification settings - Fork 1
114 lines (93 loc) · 2.76 KB
/
integration.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: integration
on:
push:
branches:
- main
pull_request:
schedule:
# <minute [0,59]> <hour [0,23]> <day of the month [1,31]>
# <month of the year [1,12]> <day of the week [0,6]>
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
# Run every Monday at 07:24:00 PST
# (Since these CRONs are used by a lot of people -
# let's be nice to the servers and schedule it _not_ on the hour)
- cron: "24 7 * * 1"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@main
- name: Install Node.js
uses: actions/setup-node@main
with:
node-version: 16
- name: Install Dependencies
run: npm ci
- name: Lint
run: npm run lint
test-core:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Check out Git repository
uses: actions/checkout@main
- name: Install Node.js
uses: actions/setup-node@main
with:
node-version: 16
- name: Install Dependencies
run: npm ci
- name: Unit Test
run: npm run test:core
test-web:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Check out Git repository
uses: actions/checkout@main
- name: Install Node.js
uses: actions/setup-node@main
with:
node-version: 16
- name: Install Dependencies
run: npm ci
- name: Unit Test
run: npm run test:web
test-desktop:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Check out Git repository
uses: actions/checkout@main
- name: Install Node.js
uses: actions/setup-node@main
with:
node-version: 16
- name: Install Dependencies
run: npm ci
- name: Unit Test
run: npm run test:desktop
build-desktop:
runs-on: ${{ matrix.os }}
needs: [test-desktop, test-web, test-core]
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@main
- name: Install Node.js
uses: actions/setup-node@main
with:
node-version: 16
- name: Build Electron app
uses: AllenCellSoftware/action-electron-builder@fms-file-explorer
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
package_root: "packages/desktop"
release: false # Never release on an integration build
windows_certs: ${{ secrets.CSC_LINK }}
windows_certs_password: ${{ secrets.CSC_KEY_PASSWORD }}