build_and_test_provisioned.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. name: Build-and-Test-Provisioned
  2. on:
  3. workflow_call:
  4. inputs:
  5. runner_label:
  6. required: true
  7. type: string
  8. run_build:
  9. type: boolean
  10. default: true
  11. sanitizer:
  12. required: false
  13. type: string
  14. run_unit_tests:
  15. type: boolean
  16. default: true
  17. run_functional_tests:
  18. type: boolean
  19. default: true
  20. test_label_regexp:
  21. required: false
  22. type: string
  23. workflow_dispatch:
  24. inputs:
  25. runner_label:
  26. required: true
  27. type: string
  28. run_build:
  29. type: boolean
  30. default: true
  31. sanitizer:
  32. required: false
  33. type: string
  34. run_unit_tests:
  35. type: boolean
  36. default: true
  37. run_functional_tests:
  38. type: boolean
  39. default: true
  40. test_label_regexp:
  41. required: false
  42. type: string
  43. jobs:
  44. main:
  45. name: Build and test
  46. runs-on: [ self-hosted, Provisioned, "${{ inputs.runner_label }}" ]
  47. steps:
  48. - name: Checkout
  49. uses: actions/checkout@v3
  50. - name: Build
  51. uses: ./.github/actions/build
  52. if: inputs.run_build
  53. with:
  54. sanitizer: ${{ inputs.sanitizer }}
  55. ccache_remote_path: ${{ vars.REMOTE_CACHE_URL && format('http://{0}{1}', secrets.REMOTE_CACHE_AUTH, vars.REMOTE_CACHE_URL) || ''}}
  56. - name: Run tests
  57. uses: ./.github/actions/test
  58. with:
  59. log_suffix: ${{format('{0}{1}', inputs.runner_label, inputs.sanitizer)}}
  60. test_label_regexp: ${{ inputs.test_label_regexp }}
  61. aws_key_id: ${{secrets.AWS_KEY_ID}}
  62. aws_key_value: ${{secrets.AWS_KEY_VALUE}}
  63. aws_bucket: ${{vars.AWS_BUCKET}}
  64. aws_endpoint: ${{vars.AWS_ENDPOINT}}
  65. testman_token: ${{secrets.TESTMO_TOKEN}}
  66. testman_url: ${{vars.TESTMO_URL}}
  67. testman_project_id: ${{vars.TESTMO_PROJECT_ID}}
  68. run_unit_tests: ${{inputs.run_unit_tests}}
  69. run_functional_tests: ${{inputs.run_functional_tests}}