go.yml 602 B

12345678910111213141516171819202122232425262728293031
  1. name: Go
  2. on: [push]
  3. jobs:
  4. build:
  5. name: Build
  6. runs-on: ubuntu-latest
  7. steps:
  8. - name: Set up Go 1.13
  9. uses: actions/setup-go@v1
  10. with:
  11. go-version: 1.13
  12. id: go
  13. - name: Check out code into the Go module directory
  14. uses: actions/checkout@v1
  15. - name: Get dependencies
  16. run: |
  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: Test
  23. run: go test -v .
  24. - name: Build
  25. run: go build -v .