File tree Expand file tree Collapse file tree 5 files changed +87
-5
lines changed Expand file tree Collapse file tree 5 files changed +87
-5
lines changed Original file line number Diff line number Diff line change 14
14
go-version : ' >=1.16'
15
15
- name : Checkout code
16
16
uses : actions/checkout@v2
17
+ - name : Cache node modules
18
+ id : cache-node-modules
19
+ uses : actions/cache@v3
20
+ env :
21
+ cache-name : cache-node-modules
22
+ with :
23
+ path : ./web/node_modules
24
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./web/package-lock.json') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-build-${{ env.cache-name }}-
27
+ ${{ runner.os }}-build-
28
+ ${{ runner.os }}-
29
+ - name : Cache go modules
30
+ id : cache-go-modules
31
+ uses : actions/cache@v3
32
+ env :
33
+ cache-name : cache-go-modules
34
+ with :
35
+ path : ~/go
36
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./go.sum') }}
37
+ restore-keys : |
38
+ ${{ runner.os }}-build-${{ env.cache-name }}-
39
+ ${{ runner.os }}-build-
40
+ ${{ runner.os }}-
17
41
- name : Setup config script
18
42
# using locals for mac-OS because github CI mac platforms don't have docker
19
43
run : |
Original file line number Diff line number Diff line change 14
14
go-version : ' >=1.16'
15
15
- name : Checkout code
16
16
uses : actions/checkout@v2
17
+
18
+ - name : Cache node modules
19
+ id : cache-node-modules
20
+ uses : actions/cache@v3
21
+ env :
22
+ cache-name : cache-node-modules
23
+ with :
24
+ path : ./web/node_modules
25
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./web/package-lock.json') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-build-${{ env.cache-name }}-
28
+ ${{ runner.os }}-build-
29
+ ${{ runner.os }}-
30
+ - name : Cache go modules
31
+ id : cache-go-modules
32
+ uses : actions/cache@v3
33
+ env :
34
+ cache-name : cache-go-modules
35
+ with :
36
+ path : ~/go
37
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./go.sum') }}
38
+ restore-keys : |
39
+ ${{ runner.os }}-build-${{ env.cache-name }}-
40
+ ${{ runner.os }}-build-
41
+ ${{ runner.os }}-
17
42
- name : Setup SSH server and config
18
43
# run docker ssh container for ssh tests
19
44
run : |
24
49
run : |
25
50
go mod tidy
26
51
go test -v ./...
52
+
53
+
54
+
Original file line number Diff line number Diff line change 14
14
go-version : ' >=1.16'
15
15
- name : Checkout code
16
16
uses : actions/checkout@v2
17
+ - name : Cache node modules
18
+ id : cache-node-modules
19
+ uses : actions/cache@v3
20
+ env :
21
+ cache-name : cache-node-modules
22
+ with :
23
+ path : ./web/node_modules
24
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./web/package-lock.json') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-build-${{ env.cache-name }}-
27
+ ${{ runner.os }}-build-
28
+ ${{ runner.os }}-
29
+ - name : Cache go modules
30
+ id : cache-go-modules
31
+ uses : actions/cache@v3
32
+ env :
33
+ cache-name : cache-go-modules
34
+ with :
35
+ path : ~/go
36
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./go.sum') }}
37
+ restore-keys : |
38
+ ${{ runner.os }}-build-${{ env.cache-name }}-
39
+ ${{ runner.os }}-build-
40
+ ${{ runner.os }}-
17
41
- name : Choco Install make
18
42
uses : crazy-max/ghaction-chocolatey@v1
19
43
with :
Original file line number Diff line number Diff line change 40
40
dependencies :
41
41
ifeq ($(bin ) ,main.exe)
42
42
@make prep-ci-local-windows
43
- yarn add react-scripts@latest
43
+ cd web && yarn add react-scripts@latest
44
44
else
45
45
@make prep-ci-local
46
46
endif
Original file line number Diff line number Diff line change @@ -26,11 +26,17 @@ func NewSSHForTest() Driver {
26
26
yamlPath := fmt .Sprintf ("%s/%s" , workingDir , "config-test.yaml" )
27
27
conf := config .LoadConfig (yamlPath )
28
28
dashboardInfo := config .GetDashboardInfoConfig (conf )
29
+ var host config.Host
30
+ for ind := range dashboardInfo .Hosts {
31
+ if dashboardInfo .Hosts [ind ].Address == "0.0.0.0" {
32
+ host = dashboardInfo .Hosts [ind ]
33
+ }
34
+ }
29
35
return & SSH {
30
- User : dashboardInfo . Hosts [ 0 ] .Connection .Username ,
31
- Host : dashboardInfo . Hosts [ 0 ] .Address ,
32
- Port : int (dashboardInfo . Hosts [ 0 ] .Connection .Port ),
33
- KeyFile : dashboardInfo . Hosts [ 0 ] .Connection .PrivateKeyPath ,
36
+ User : host .Connection .Username ,
37
+ Host : host .Address ,
38
+ Port : int (host .Connection .Port ),
39
+ KeyFile : host .Connection .PrivateKeyPath ,
34
40
KeyPass : "" ,
35
41
CheckKnownHosts : false ,
36
42
}
You can’t perform that action at this time.
0 commit comments