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.

28 lines
696 B

  1. on: [ push, pull_request ]
  2. name: Test
  3. jobs:
  4. test:
  5. strategy:
  6. matrix:
  7. go-version: [ 1.16.x, 1.17.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. - uses: actions/cache@v1
  20. with:
  21. path: ~/go/pkg/mod
  22. key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
  23. restore-keys: |
  24. ${{ runner.os }}-go-
  25. - name: Test
  26. env:
  27. GOARCH: ${{ matrix.goarch }}
  28. run: go test ./...