e2e.yml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. push:
  20. branches:
  21. - dev
  22. name: E2E
  23. concurrency:
  24. group: e2e-${{ github.event.pull_request.number || github.ref }}
  25. cancel-in-progress: true
  26. jobs:
  27. e2e:
  28. name: ${{ matrix.case.name }}
  29. runs-on: ubuntu-latest
  30. strategy:
  31. matrix:
  32. case:
  33. - name: Tenant
  34. class: org.apache.dolphinscheduler.e2e.cases.TenantE2ETest
  35. - name: User
  36. class: org.apache.dolphinscheduler.e2e.cases.UserE2ETest
  37. - name: WorkerGroup
  38. class: org.apache.dolphinscheduler.e2e.cases.WorkerGroupE2ETest
  39. - name: Project
  40. class: org.apache.dolphinscheduler.e2e.cases.ProjectE2ETest
  41. - name: Workflow
  42. class: org.apache.dolphinscheduler.e2e.cases.WorkflowE2ETest
  43. env:
  44. RECORDING_PATH: /tmp/recording-${{ matrix.case.name }}
  45. steps:
  46. - uses: actions/checkout@v2
  47. with:
  48. submodules: true
  49. - name: Sanity Check
  50. uses: ./.github/actions/sanity-check
  51. - name: Cache local Maven repository
  52. uses: actions/cache@v2
  53. with:
  54. path: ~/.m2/repository
  55. key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
  56. restore-keys: ${{ runner.os }}-maven-
  57. - name: Build Image
  58. run: |
  59. ./mvnw -B clean install \
  60. -Dmaven.test.skip \
  61. -Dmaven.javadoc.skip \
  62. -Dmaven.checkstyle.skip \
  63. -Pdocker,release -Ddocker.tag=ci \
  64. -pl dolphinscheduler-standalone-server -am
  65. - name: Run Test
  66. run: |
  67. ./mvnw -B -f dolphinscheduler-e2e/pom.xml -am \
  68. -DfailIfNoTests=false \
  69. -Dtest=${{ matrix.case.class }} test
  70. - uses: actions/upload-artifact@v2
  71. if: always()
  72. name: Upload Recording
  73. with:
  74. name: recording-${{ matrix.case.name }}
  75. path: ${{ env.RECORDING_PATH }}
  76. retention-days: 1
  77. result:
  78. name: E2E
  79. runs-on: ubuntu-latest
  80. needs: [ e2e ]
  81. steps:
  82. - name: Status
  83. run: echo "Passed!"