@ -2,15 +2,11 @@ name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ action-ci ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: VM_0_11_centos
steps:
- name: Set up Go 1.13
@ -32,6 +28,8 @@ jobs:
- name: Build
run: |
pwd
ls -la
cd server
go build -v .
@ -0,0 +1,27 @@
name: Go
runs-on: [ VM_0_11_centos ]
- name: Get dependencies
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi