test.yml 700 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Test
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - v*
  7. paths:
  8. - "**/*.go"
  9. - "go.mod"
  10. - "go.sum"
  11. pull_request:
  12. types: [opened, synchronize, reopened]
  13. paths:
  14. - "**/*.go"
  15. - "go.mod"
  16. - "go.sum"
  17. jobs:
  18. test:
  19. if: github.repository != 'v2ray/v2ray-core'
  20. runs-on: ${{ matrix.os }}
  21. strategy:
  22. fail-fast: false
  23. matrix:
  24. os: [windows-latest, ubuntu-latest, macos-latest]
  25. steps:
  26. - name: Set up Go 1.x
  27. uses: actions/setup-go@v2
  28. with:
  29. go-version: ^1.15
  30. - name: Checkout codebase
  31. uses: actions/checkout@v2
  32. - name: Test
  33. run: go test -v -race -timeout 1h ./...