forked from electron-userland/electron-builder
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yml
77 lines (74 loc) · 2.15 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
76
77
version: 2
jobs:
build:
docker:
- image: circleci/node:14.17@sha256:e1e0d976a089e059389ccc740cc51dacea9cfeea1e7d617243ba06b89ae1ead2
steps:
- checkout
- restore_cache:
keys:
- install-dep-cache-{{ checksum "pnpm-lock.yaml" }}
- restore_cache:
keys:
- v-11.0.0-electron
- run:
command: npm i --prefix=$HOME/.local -g pnpm
- run:
command: pnpm install --frozen-lockfile
- run:
command: pnpm compile
- save_cache:
key: install-dep-cache-{{ checksum "pnpm-lock.yaml" }}
paths:
- node_modules
- run:
command: node ./test/out/helpers/downloadElectron.js
- save_cache:
key: v-11.0.0-electron
paths:
- ~/.cache/electron
test:
parallelism: 4
docker:
- image: electronuserland/builder:wine-mono-05.21@sha256:a623432c159a02019e77a71873dfc6d4bf45f4b2011b333dbca429f02ee4cc56
environment:
JEST_JUNIT_OUTPUT_DIR: /tmp/test-reports/test.xml
TZ: Europe/Berlin
steps:
- checkout
- restore_cache:
keys:
- install-dep-cache-{{ checksum "pnpm-lock.yaml" }}
- restore_cache:
keys:
- v-11.0.0-electron
# because in the build job we use circleci docker image and circleci restores cache to original user home
- run:
command: |
curl -L https://unpkg.com/@pnpm/self-installer | node
mkdir -p ~/.cache
mv /home/circleci/.cache/electron ~/.cache/electron
pnpm install --frozen-lockfile
- run:
# do not use yarn test because lint is done in the build job
command: pnpm run compile
- run:
command: node ./test/out/helpers/runTests.js
- store_test_results:
path: /tmp/test-reports
workflows:
version: 2
build_and_test:
jobs:
- build:
filters:
branches:
ignore:
- docs
- test:
filters:
branches:
ignore:
- docs
requires:
- build