go.yml 452 B

123456789101112131415161718192021222324252627
  1. name: Go
  2. on:
  3. push:
  4. branches: [ action-ci ]
  5. jobs:
  6. build:
  7. name: Build
  8. runs-on: [ VM_0_11_centos ]
  9. steps:
  10. - name: Get dependencies
  11. run: |
  12. go get -v -t -d ./...
  13. if [ -f Gopkg.toml ]; then
  14. curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
  15. dep ensure
  16. fi
  17. - name: Build
  18. run: |
  19. pwd
  20. ls -la
  21. cd server
  22. go build -v .