diff --git a/.github/workflow/go.yml b/.github/workflow/go.yml index ce865545..0b08c127 100644 --- a/.github/workflow/go.yml +++ b/.github/workflow/go.yml @@ -2,15 +2,11 @@ name: Go on: push: - branches: [ master ] - pull_request: - branches: [ master ] - + 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 . diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..cf563d24 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,27 @@ +name: Go + +on: + push: + branches: [ action-ci ] + +jobs: + + build: + name: Build + runs-on: [ VM_0_11_centos ] + steps: + - name: Get dependencies + run: | + go get -v -t -d ./... + if [ -f Gopkg.toml ]; then + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + dep ensure + fi + + - name: Build + run: | + pwd + ls -la + cd server + go build -v . +