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.

19 lines
527 B

  1. name: Test
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. # matrix strategy from: https://github.com/mvdan/github-actions-golang/blob/master/.github/workflows/test.yml
  6. strategy:
  7. matrix:
  8. go-version: [1.13.x, 1.14.x]
  9. platform: [ubuntu-latest]
  10. runs-on: ${{ matrix.platform }}
  11. steps:
  12. - name: Install Go
  13. uses: actions/setup-go@v1
  14. with:
  15. go-version: ${{ matrix.go-version }}
  16. - name: Checkout code
  17. uses: actions/checkout@v2
  18. - name: Run tests
  19. run: go test ./...