test.yaml 817 B

12345678910111213141516171819202122232425262728
  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: Install node
  12. uses: actions/setup-node@v2
  13. with:
  14. node-version: '16'
  15. - name: Checkout code
  16. uses: actions/checkout@v2
  17. - name: Install dependencies
  18. run: sudo apt update && sudo apt install -y python3-pip curl
  19. - name: Build docs (required for tests)
  20. run: make docs
  21. - name: Build web app (required for tests)
  22. run: make web
  23. - name: Run tests, formatting, vetting and linting
  24. run: make check
  25. - name: Run coverage
  26. run: make coverage
  27. - name: Upload coverage to codecov.io
  28. run: make coverage-upload