test.yml 863 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Lint, Test, Build
  2. on:
  3. push:
  4. tags-ignore:
  5. - 'v*'
  6. branches:
  7. - "**"
  8. pull_request:
  9. jobs:
  10. lintTestBuild:
  11. name: Lint, Test, Build
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@v2
  16. - name: Setup Go
  17. uses: actions/setup-go@v2
  18. with:
  19. go-version: '1.15.6'
  20. - name: Install Deps
  21. id: install-deps
  22. run: sudo apt-get -y install libpcsclite-dev
  23. - name: Lint, Test, Build
  24. id: lintTestBuild
  25. run: V=1 make -j1 bootstrap ci
  26. - name: Codecov
  27. uses: codecov/codecov-action@v1.2.1
  28. with:
  29. token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
  30. file: ./coverage.out # optional
  31. name: codecov-umbrella # optional
  32. fail_ci_if_error: true # optional (default = false)