go.yml 484 B

12345678910111213141516171819202122232425262728
  1. name: Go
  2. on:
  3. push:
  4. branches: [ action-ci ]
  5. jobs:
  6. build:
  7. name: Build
  8. runs-on: [ self-hosted ]
  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: Check dir
  18. run : |
  19. pwd
  20. ls -la
  21. - name: Build
  22. run: |
  23. cd server
  24. go build -v .