test.yml 558 B

1234567891011121314151617181920212223242526272829
  1. name: Test
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. branches: [master]
  7. jobs:
  8. test:
  9. runs-on: ${{ matrix.os }}
  10. strategy:
  11. matrix:
  12. os: [windows-latest, ubuntu-latest, macos-latest]
  13. steps:
  14. - name: Set up Go 1.x
  15. uses: actions/setup-go@v2
  16. with:
  17. go-version: ^1.14
  18. - name: Checkout default branch
  19. uses: actions/checkout@v2
  20. - name: Get dependencies
  21. run: |
  22. go get -v -t -d ./...
  23. - name: Test
  24. run: go test -parallel 1 -timeout 6h -v ./...