go.yml 552 B

1234567891011121314151617181920212223242526272829303132
  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. - name: Show files
  13. run: ls -la
  14. - name: Get dependencies
  15. run: |
  16. cd server
  17. go get -v -t -d ./...
  18. if [ -f Gopkg.toml ]; then
  19. curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
  20. dep ensure
  21. fi
  22. - name: Build
  23. run: |
  24. go build -v .