1
0

test.yml 963 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: test
  2. on:
  3. pull_request:
  4. branches:
  5. - "*"
  6. push:
  7. branches:
  8. - "*"
  9. jobs:
  10. test:
  11. runs-on: ubuntu-latest
  12. strategy:
  13. fail-fast: false
  14. matrix:
  15. go_version:
  16. - 1.13.x
  17. - 1.14.x
  18. - 1.15.x
  19. - 1.16.x
  20. - 1.17.x
  21. name: Test with ${{ matrix.go_version }}
  22. steps:
  23. - uses: actions/checkout@v2
  24. - uses: actions/setup-go@v1
  25. with:
  26. go-version: ${{ matrix.go_version }}
  27. - name: Vet and test
  28. run: |
  29. go version
  30. go vet ./...
  31. go test ./...
  32. golangci:
  33. name: Linting
  34. runs-on: ubuntu-latest
  35. steps:
  36. - uses: actions/checkout@v2
  37. - uses: actions/setup-go@v1
  38. with:
  39. go-version: 1.17
  40. - name: golangci-lint
  41. uses: golangci/golangci-lint-action@v2
  42. with:
  43. version: latest
  44. skip-go-installation: true
  45. args: "--config .golangci.yml"