test.yml 493 B

12345678910111213141516171819202122
  1. name: Test
  2. on: [push]
  3. jobs:
  4. test:
  5. name: Build
  6. runs-on: ${{ matrix.os }}
  7. strategy:
  8. matrix:
  9. os: [ubuntu-latest, windows-latest, macOS-latest]
  10. steps:
  11. - name: Set up Go 1.13
  12. uses: actions/setup-go@v1
  13. with:
  14. go-version: 1.13
  15. id: go
  16. - name: Check out code into the Go module directory
  17. uses: actions/checkout@v1
  18. - name: Get dependencies
  19. run: go mod tidy
  20. - name: Test
  21. run: go test ./...