go.yml 444 B

1234567891011121314151617181920212223242526272829
  1. name: Go
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. name: Build
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Set up Go 1.x
  13. uses: actions/setup-go@v2
  14. with:
  15. go-version: ^1.13
  16. id: go
  17. - name: Check out code into the Go module directory
  18. uses: actions/checkout@v2
  19. - name: Build
  20. run: go build -v .
  21. - name: Test
  22. run: go test -v .