test.yaml 793 B

1234567891011121314151617181920212223242526
  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
  15. - name: Install latest jinja2 version
  16. run: pip3 install jinja2
  17. - name: Install mkdocs
  18. run: pip3 install mkdocs mkdocs-material mkdocs-minify-plugin
  19. - name: Build docs
  20. run: make docs
  21. - name: Run tests, formatting, vetting and linting
  22. run: make check
  23. - name: Run coverage
  24. run: make coverage
  25. # - name: Upload coverage to codecov.io
  26. # run: make coverage-upload