|
|
|
@ -38,8 +38,22 @@ concurrency:
|
|
|
|
|
cancel-in-progress: true |
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
paths-filter: |
|
|
|
|
name: Backend-Path-Filter |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
outputs: |
|
|
|
|
ignore: ${{ steps.filter.outputs.ignore }} |
|
|
|
|
steps: |
|
|
|
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 |
|
|
|
|
id: filter |
|
|
|
|
with: |
|
|
|
|
filters: | |
|
|
|
|
ignore: |
|
|
|
|
- '(docs/**|dolphinscheduler-ui/**|dolphinscheduler-ui-next/**)' |
|
|
|
|
build: |
|
|
|
|
name: Build |
|
|
|
|
name: Backend-Build |
|
|
|
|
needs: paths-filter |
|
|
|
|
if: ${{ needs.paths-filter.outputs.ignore == 'false' }} |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
timeout-minutes: 30 |
|
|
|
|
steps: |
|
|
|
@ -63,3 +77,17 @@ jobs:
|
|
|
|
|
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 |
|
|
|
|
- name: Check dependency license |
|
|
|
|
run: tools/dependencies/check-LICENSE.sh |
|
|
|
|
result: |
|
|
|
|
name: Build |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
timeout-minutes: 30 |
|
|
|
|
needs: [ build ] |
|
|
|
|
if: always() |
|
|
|
|
steps: |
|
|
|
|
- name: Status |
|
|
|
|
run: | |
|
|
|
|
if [[ ${{ needs.build.result }} == 'success' || ${{ needs.paths-filter.outputs.ignore == 'true' }} ]]; then |
|
|
|
|
echo "Passed!" |
|
|
|
|
else |
|
|
|
|
exit -1 |
|
|
|
|
fi |
|
|
|
|