go.yml 405 B

1234567891011121314151617181920212223242526
  1. name: Go
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. branches: [master]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v3
  12. - name: Set up Go
  13. uses: actions/setup-go@v3
  14. with:
  15. go-version-file: "go.mod"
  16. cache: true
  17. - name: Build
  18. run: go build -v ./...
  19. - name: Test
  20. run: go test -v ./...