|
@ -19,14 +19,20 @@ jobs: |
|
|
|
|
|
|
|
|
- name: Get dependencies |
|
|
- name: Get dependencies |
|
|
run: | |
|
|
run: | |
|
|
cd server |
|
|
|
|
|
go get -v -t -d ./... |
|
|
go get -v -t -d ./... |
|
|
if [ -f Gopkg.toml ]; then |
|
|
if [ -f Gopkg.toml ]; then |
|
|
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh |
|
|
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh |
|
|
dep ensure |
|
|
dep ensure |
|
|
fi |
|
|
fi |
|
|
|
|
|
working-directory: ./server |
|
|
|
|
|
|
|
|
- name: Build |
|
|
- name: Build |
|
|
run: | |
|
|
run: | |
|
|
go build -v . |
|
|
go build -v . |
|
|
|
|
|
working-directory: ./server |
|
|
|
|
|
|
|
|
|
|
|
- name: Run |
|
|
|
|
|
run: | |
|
|
|
|
|
nohup ./gin-vue-admin & |
|
|
|
|
|
working-directory: ./server |
|
|
|
|
|
|