go.yml 536 B

123456789101112131415161718192021222324252627282930
  1. name: gin-vue-admin ci&cd
  2. on:
  3. push:
  4. branches: [ action-ci ]
  5. jobs:
  6. build:
  7. name: Build
  8. runs-on: [ self-hosted ]
  9. steps:
  10. - name: Check out the repository
  11. uses: actions/checkout@v2
  12. run: ls -la
  13. - name: Get dependencies
  14. run: |
  15. go get -v -t -d ./...
  16. if [ -f Gopkg.toml ]; then
  17. curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
  18. dep ensure
  19. fi
  20. - name: Build
  21. run: |
  22. cd server
  23. go build -v .