backend.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. name: Backend
  18. on:
  19. push:
  20. branches:
  21. - dev
  22. paths:
  23. - '.github/workflows/backend.yml'
  24. - 'package.xml'
  25. - 'pom.xml'
  26. - 'dolphinscheduler-alert/**'
  27. - 'dolphinscheduler-api/**'
  28. - 'dolphinscheduler-common/**'
  29. - 'dolphinscheduler-dao/**'
  30. - 'dolphinscheduler-rpc/**'
  31. - 'dolphinscheduler-server/**'
  32. pull_request:
  33. paths:
  34. - '.github/workflows/backend.yml'
  35. - 'package.xml'
  36. - 'pom.xml'
  37. - 'dolphinscheduler-alert/**'
  38. - 'dolphinscheduler-api/**'
  39. - 'dolphinscheduler-common/**'
  40. - 'dolphinscheduler-dao/**'
  41. - 'dolphinscheduler-rpc/**'
  42. - 'dolphinscheduler-server/**'
  43. concurrency:
  44. group: backend-${{ github.event.pull_request.number || github.ref }}
  45. cancel-in-progress: true
  46. jobs:
  47. build:
  48. name: Build
  49. runs-on: ubuntu-latest
  50. steps:
  51. - uses: actions/checkout@v2
  52. with:
  53. submodules: true
  54. - name: Sanity Check
  55. uses: ./.github/actions/sanity-check
  56. with:
  57. token: ${{ secrets.GITHUB_TOKEN }} # We only need to pass this token in one workflow
  58. - uses: actions/cache@v2
  59. with:
  60. path: ~/.m2/repository
  61. key: ${{ runner.os }}-maven
  62. - name: Build and Package
  63. run: |
  64. ./mvnw -B clean install \
  65. -Prelease \
  66. -Dmaven.test.skip=true \
  67. -Dcheckstyle.skip=true \
  68. -Dhttp.keepAlive=false \
  69. -Dmaven.wagon.http.pool=false \
  70. -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
  71. - name: Check dependency license
  72. run: tools/dependencies/check-LICENSE.sh