go.yml 361 B

12345678910111213141516171819202122232425
  1. name: Go
  2. on:
  3. push:
  4. branches: [ "main" ]
  5. pull_request:
  6. branches: [ "main" ]
  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: 1.18
  16. - name: Build
  17. run: go build -v ./...
  18. - name: Test
  19. run: go test -v ./...