go.yml 378 B

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