test.yml 564 B

12345678910111213141516171819202122
  1. on: [push, pull_request]
  2. name: Test
  3. jobs:
  4. test:
  5. name: Go tests
  6. strategy:
  7. fail-fast: false
  8. matrix:
  9. go: [1.14.x, 1.x]
  10. os: [ubuntu-latest, macos-latest, windows-latest]
  11. runs-on: ${{ matrix.os }}
  12. steps:
  13. - name: Install Go ${{ matrix.go }}
  14. uses: actions/setup-go@v2
  15. with:
  16. go-version: ${{ matrix.go }}
  17. - name: Checkout repository
  18. uses: actions/checkout@v2
  19. - name: Run analyses
  20. run: go run analysis.go ./...
  21. - name: Run tests
  22. run: go test -race ./...