File tree Expand file tree Collapse file tree 2 files changed +34
-38
lines changed Expand file tree Collapse file tree 2 files changed +34
-38
lines changed Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Build App
2
2
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- setup :
7
- runs-on : ubuntu-18.04
6
+ build-macos :
7
+ runs-on : macos-10.15
8
8
9
9
steps :
10
10
- uses : actions/checkout@v2
23
23
- name : Install Dependencies
24
24
run : yarn install
25
25
26
- run-unit-tests :
27
- runs-on : ubuntu-18.04
28
- needs : setup
29
-
30
- steps :
31
- - uses : actions/checkout@v2
32
-
33
- - name : Get yarn cache
34
- id : yarn-cache
35
- run : echo "::set-output name=dir::$(yarn cache dir)"
36
-
37
- - name : Install Dependencies
38
- run : yarn install
39
-
40
- - name : Run Prettier (Check)
41
- run : yarn prettier-check
42
-
43
- - name : Run Jest
44
- run : yarn test --coverage --runInBand
45
-
46
- build-macos :
47
- runs-on : macos-10.15
48
- needs : setup
49
-
50
- steps :
51
- - uses : actions/checkout@v2
52
-
53
- - name : Get yarn cache
54
- id : yarn-cache
55
- run : echo "::set-output name=dir::$(yarn cache dir)"
56
-
57
- - name : Install Dependencies
58
- run : yarn install
59
-
60
26
- name : Build
61
27
run : yarn build
62
28
70
36
run : yarn make:macos
71
37
72
38
- name : Clean up builds
73
- run : rm -rfv dist/mac dist/Gitify-*.dmg*
39
+ run : rm -rfv dist/mac
74
40
75
41
- uses : actions/upload-artifact@v1
76
42
with :
Original file line number Diff line number Diff line change
1
+ name : Run Tests
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ run-unit-tests :
7
+ runs-on : ubuntu-18.04
8
+
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+
12
+ - name : Get yarn cache
13
+ id : yarn-cache
14
+ run : echo "::set-output name=dir::$(yarn cache dir)"
15
+
16
+ - uses : actions/cache@v1
17
+ with :
18
+ path : ${{ steps.yarn-cache.outputs.dir }}
19
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
20
+ restore-keys : |
21
+ ${{ runner.os }}-yarn-
22
+
23
+ - name : Install Dependencies
24
+ run : yarn install
25
+
26
+ - name : Run Prettier (Check)
27
+ run : yarn prettier-check
28
+
29
+ - name : Run Jest
30
+ run : yarn test --coverage --runInBand
You can’t perform that action at this time.
0 commit comments