test.yaml 640 B

12345678910111213141516171819202122
  1. name: test
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Install Go
  8. uses: actions/setup-go@v2
  9. with:
  10. go-version: '1.17.x'
  11. - name: Checkout code
  12. uses: actions/checkout@v2
  13. - name: Install dependencies
  14. run: sudo apt update && sudo apt install -y python3-pip curl
  15. - name: Build docs (required for tests)
  16. run: make docs
  17. - name: Run tests, formatting, vetting and linting
  18. run: make check
  19. - name: Run coverage
  20. run: make coverage
  21. - name: Upload coverage to codecov.io
  22. run: make coverage-upload