File tree 4 files changed +825
-114
lines changed
4 files changed +825
-114
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Image CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ jobs :
10
+
11
+ build :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+
17
+ - name : Install NodeJS 20
18
+ uses : actions/setup-node@v4
19
+ with :
20
+ node-version : 20
21
+
22
+ # Build and start the DBHub.io server daemons
23
+ - name : Checkout the DBHub.io source code
24
+ uses : actions/checkout@v4
25
+ with :
26
+ repository : ' sqlitebrowser/dbhub.io'
27
+ path : daemons
28
+
29
+ - name : Build the DBHub.io daemons
30
+ run : cd daemons; yarn docker:build
31
+
32
+ - name : Update the daemon config file
33
+ run : cd daemons; sed -i 's/bind_address = ":9444"/bind_address = "0.0.0.0:9444"/' docker/config.toml
34
+
35
+ - name : Start the DBHub.io daemons
36
+ run : cd daemons; docker run -itd --rm --name dbhub-build --net host dbhub-build:latest && sleep 5
37
+
38
+ # Build and test the go-dbhub library
39
+ - name : Checkout go-dbhub library source code
40
+ uses : actions/checkout@v4
41
+ with :
42
+ path : main
43
+
44
+ - name : Set up Go for go-dbhub library
45
+ uses : actions/setup-go@v4
46
+ with :
47
+ go-version : ' 1.20'
48
+
49
+ - name : Build the go-dbhub library
50
+ run : cd main; go build -v
51
+
52
+ - name : Test the go-dbhub library
53
+ run : cd main; go test -v
You can’t perform that action at this time.
0 commit comments