e2e.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. env:
  23. TAG: ci
  24. RECORDING_PATH: /tmp/recording
  25. name: E2E
  26. concurrency:
  27. group: e2e-${{ github.event.pull_request.number || github.ref }}
  28. cancel-in-progress: true
  29. jobs:
  30. e2e:
  31. name: ${{ matrix.case.name }}
  32. runs-on: ubuntu-latest
  33. strategy:
  34. matrix:
  35. case:
  36. - name: Tenant
  37. class: org.apache.dolphinscheduler.e2e.cases.security.TenantE2ETest
  38. steps:
  39. - uses: actions/checkout@v2
  40. with:
  41. submodules: true
  42. - name: Sanity Check
  43. uses: ./.github/actions/sanity-check
  44. - name: Cache local Maven repository
  45. uses: actions/cache@v2
  46. with:
  47. path: ~/.m2/repository
  48. key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
  49. restore-keys: ${{ runner.os }}-maven-
  50. - name: Build Image
  51. run: TAG=ci sh ./docker/build/hooks/build
  52. - name: Run Test
  53. run: |
  54. ./mvnw -f dolphinscheduler-e2e/pom.xml -am \
  55. -DfailIfNoTests=false \
  56. -Dtest=${{ matrix.case.class }} test
  57. - uses: actions/upload-artifact@v2
  58. if: always()
  59. name: Upload Recording
  60. with:
  61. name: recording
  62. path: ${{ env.RECORDING_PATH }}
  63. retention-days: 1