You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
500 B

  1. name: Test
  2. on: [ push, pull_request ]
  3. jobs:
  4. test:
  5. strategy:
  6. matrix:
  7. go-version: [ 1.13.x, 1.14.x ]
  8. goarch: [ "amd64", "386" ]
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Install Go
  12. uses: actions/setup-go@v1
  13. with:
  14. go-version: ${{ matrix.go-version }}
  15. env:
  16. GOARCH: ${{ matrix.goarch }}
  17. - name: Checkout code
  18. uses: actions/checkout@v2
  19. - name: Test
  20. env:
  21. GOARCH: ${{ matrix.goarch }}
  22. run: go test ./...