test.yml 616 B

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