test.yml 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: Build and test
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. jobs:
  8. test-linux:
  9. name: Build all and test on ubuntu-linux
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Set up Go 1.13
  13. uses: actions/setup-go@v1
  14. with:
  15. go-version: 1.13
  16. id: go
  17. - name: Check out code into the Go module directory
  18. uses: actions/checkout@v1
  19. - name: Build
  20. run: make all
  21. - name: Test
  22. run: make test
  23. test:
  24. name: Build and test on ${{ matrix.os }}
  25. runs-on: ${{ matrix.os }}
  26. strategy:
  27. matrix:
  28. os: [windows-latest, macOS-latest]
  29. steps:
  30. - name: Set up Go 1.13
  31. uses: actions/setup-go@v1
  32. with:
  33. go-version: 1.13
  34. id: go
  35. - name: Check out code into the Go module directory
  36. uses: actions/checkout@v1
  37. - name: Build nebula
  38. run: go build ./cmd/nebula
  39. - name: Build nebula-cert
  40. run: go build ./cmd/nebula-cert
  41. - name: Test
  42. run: go test -v ./...