test.yml 952 B

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