9
9
- " *"
10
10
11
11
jobs :
12
- test :
13
- name : nodejs v${{ matrix.node_version }} on ${{ matrix.os }}
12
+ frontend :
13
+ name : frontend tests on ${{ matrix.os }}
14
14
runs-on : ${{ matrix.os }}
15
15
16
16
strategy :
17
17
matrix :
18
- node_version : [12.x, 14.x ]
18
+ node_version : [12.x]
19
19
os : [ubuntu-latest, windows-latest, macOS-latest]
20
20
21
21
steps :
24
24
git config --global core.eol lf
25
25
git config --global core.autocrlf false
26
26
27
- - uses : actions/checkout@v1
27
+ - name : git checkout
28
+ uses : actions/checkout@v2
28
29
29
- - name : setup nodejs
30
+ - name : setup nodejs v${{ matrix.node_version }}
30
31
uses : actions/setup-node@v1
31
32
with :
32
33
node-version : ${{ matrix.node_version }}
@@ -38,13 +39,15 @@ jobs:
38
39
id : yarn-cache-dir
39
40
run : echo "::set-output name=dir::$(yarn cache dir)"
40
41
41
- - uses : actions/cache@v1
42
+ - name : yarn cache
43
+ uses : actions/cache@v2
42
44
id : yarn-cache
43
45
with :
44
46
path : ${{ steps.yarn-cache-dir.outputs.dir }}
45
- key : ${{ runner.os }}-${{ runner .node_version }}-yarn -${{ hashFiles('**/yarn.lock') }}
47
+ key : ${{ runner.os }}-yarn- ${{ matrix .node_version }}-${{ hashFiles('**/yarn.lock') }}
46
48
restore-keys : |
47
- ${{ runner.os }}-${{ runner.node_version }}-yarn-
49
+ ${{ runner.os }}-yarn-${{ matrix.node_version }}-
50
+ ${{ runner.os }}-yarn-
48
51
49
52
- name : install dependencies
50
53
working-directory : ./app
62
65
working-directory : ./app
63
66
run : yarn test:ci
64
67
65
- - name : build app
66
- working-directory : ./app
67
- run : yarn build
68
+ backend :
69
+ name : backend build on ${{ matrix.os }}
70
+ runs-on : ${{ matrix.os }}
71
+
72
+ strategy :
73
+ matrix :
74
+ go_version : [1.14.x]
75
+ os : [ubuntu-latest, windows-latest, macOS-latest]
76
+
77
+ steps :
78
+ - name : git checkout
79
+ uses : actions/checkout@v2
80
+
81
+ - name : go cache
82
+ uses : actions/cache@v2
83
+ with :
84
+ path : ~/go/pkg/mod
85
+ key : ${{ runner.os }}-go-${{ matrix.go_version }}-${{ hashFiles('**/go.sum') }}
86
+ restore-keys : |
87
+ ${{ runner.os }}-go-${{ matrix.go_version }}-${{ hashFiles('**/go.sum') }}
88
+ ${{ runner.os }}-go-${{ matrix.go_version }}-
89
+ ${{ runner.os }}-go-
90
+
91
+ - name : setup go v${{ matrix.go_version }}
92
+ uses : actions/setup-go@v2
93
+ with :
94
+ go-version : ' ~${{ matrix.go_version }}'
95
+
96
+ - name : build backend binary
97
+ run : make build
0 commit comments