-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathconfig.yml
75 lines (72 loc) · 2.16 KB
/
config.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
version: 2.1
orbs:
cfa: continuousauth/npm@2.1.0
node: electronjs/node@1.4.1
jobs:
test:
environment:
# prevent Wine popup dialogs about installing additional packages
WINEDLLOVERRIDES: mscoree,mshtml=
WINEDEBUG: -all
executor: <<parameters.executor>>
parameters:
executor:
description: The executor to use for the job.
type: string
node-version:
description: Specify the Node.js version to install.
type: string
steps:
- node/test:
post-node-js-install-steps:
- run: test/ci/before_install.sh
override-ci-command: yarn install --frozen-lockfile --ignore-engines
test-steps:
- run: yarn build
- restore_cache:
name: Restoring Electron cache
paths:
- $HOME/.cache/electron
keys:
- v1-electron-cache-{{ arch }}
- run:
name: Download Electron binaries
command: |
node test/ci/_before_script.js
- save_cache:
name: Persisting Electron cache
paths:
- $HOME/.cache/electron
key: v1-electron-cache-{{ arch }}
- run: yarn run lint
- run: yarn run coverage
- run: yarn run codecov
use-test-steps: true
node-version: << parameters.node-version >>
workflows:
test_and_release:
# Run the test jobs first, then the release only when all the test jobs are successful
jobs:
- test:
name: test-<< matrix.executor >>-<< matrix.node-version >>
matrix:
alias: test
parameters:
executor:
- node/linux
- node/macos
- node/windows
node-version:
- 20.2.0
- 18.14.0
- 16.4.0
filters:
branches: { ignore: gh-pages }
- cfa/release:
requires:
- test
filters:
branches:
only:
- main
context: cfa-release