test.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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-20.04
  13. strategy:
  14. matrix:
  15. go: [ '1.18', '1.19' ]
  16. steps:
  17. -
  18. name: Checkout
  19. uses: actions/checkout@v2
  20. -
  21. name: Setup Go
  22. uses: actions/setup-go@v2
  23. with:
  24. go-version: ${{ matrix.go }}
  25. -
  26. name: Install Deps
  27. id: install-deps
  28. run: sudo apt-get -y install libpcsclite-dev
  29. -
  30. name: golangci-lint
  31. uses: golangci/golangci-lint-action@v2
  32. with:
  33. version: ${{ secrets.GOLANGCI_LINT_VERSION }}
  34. args: --timeout=30m
  35. -
  36. name: Test, Build
  37. id: lint_test_build
  38. run: V=1 make ci
  39. -
  40. name: Codecov
  41. if: matrix.go == '1.19'
  42. uses: codecov/codecov-action@v2
  43. with:
  44. token: ${{ secrets.CODECOV_TOKEN }}
  45. files: ./coverage.out # optional
  46. name: codecov-umbrella # optional
  47. fail_ci_if_error: true # optional (default = false)