e2e.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. on:
  18. pull_request:
  19. paths-ignore:
  20. - '**/*.md'
  21. - 'dolphinscheduler-python/pydolphinscheduler'
  22. push:
  23. paths-ignore:
  24. - '**/*.md'
  25. - 'dolphinscheduler-python/pydolphinscheduler'
  26. branches:
  27. - dev
  28. env:
  29. TAG: ci
  30. RECORDING_PATH: /tmp/recording
  31. name: E2E
  32. concurrency:
  33. group: e2e-${{ github.event.pull_request.number || github.ref }}
  34. cancel-in-progress: true
  35. jobs:
  36. e2e:
  37. name: ${{ matrix.case.name }}
  38. runs-on: ubuntu-latest
  39. strategy:
  40. matrix:
  41. case:
  42. - name: Tenant
  43. class: org.apache.dolphinscheduler.e2e.cases.security.TenantE2ETest
  44. steps:
  45. - uses: actions/checkout@v2
  46. with:
  47. submodules: true
  48. - name: Sanity Check
  49. uses: ./.github/actions/sanity-check
  50. - name: Cache local Maven repository
  51. uses: actions/cache@v2
  52. with:
  53. path: ~/.m2/repository
  54. key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
  55. restore-keys: ${{ runner.os }}-maven-
  56. - name: Build Image
  57. run: TAG=ci sh ./docker/build/hooks/build
  58. - name: Run Test
  59. run: |
  60. ./mvnw -f dolphinscheduler-e2e/pom.xml -am \
  61. -DfailIfNoTests=false \
  62. -Dtest=${{ matrix.case.class }} test
  63. - uses: actions/upload-artifact@v2
  64. if: always()
  65. name: Upload Recording
  66. with:
  67. name: recording
  68. path: ${{ env.RECORDING_PATH }}
  69. retention-days: 1