[CI] try to fix ci (#9366)
* try to fix ci * try to fix ci * try to fix ci * try to fix ci * try to fix ci * try to fix ci * try to fix ci * try to fix ci * try to fix ci * try to fix ci * try to fix ci * try to fix ci * try to fix cidependabot/maven/org.springframework-spring-core-5.3.18
parent
1679f15a50
commit
80ea8049e0
|
|
@ -42,18 +42,18 @@ jobs:
|
||||||
name: Backend-Path-Filter
|
name: Backend-Path-Filter
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
ignore: ${{ steps.filter.outputs.ignore }}
|
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
||||||
steps:
|
steps:
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
filters: |
|
||||||
ignore:
|
not-ignore:
|
||||||
- '(docs/**|dolphinscheduler-ui/**|dolphinscheduler-ui-next/**)'
|
- '!(docs/**|dolphinscheduler-ui/**|dolphinscheduler-ui-next/**)'
|
||||||
build:
|
build:
|
||||||
name: Backend-Build
|
name: Backend-Build
|
||||||
needs: paths-filter
|
needs: paths-filter
|
||||||
if: ${{ needs.paths-filter.outputs.ignore == 'false' }}
|
if: ${{ needs.paths-filter.outputs.not-ignore == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -81,13 +81,16 @@ jobs:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
needs: [ build ]
|
needs: [ build, paths-filter ]
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- name: Status
|
- name: Status
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ needs.build.result }} == 'success' || ${{ needs.paths-filter.outputs.ignore == 'true' }} ]]; then
|
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' ]]; then
|
||||||
echo "Passed!"
|
echo "Skip Build!"
|
||||||
else
|
exit 0
|
||||||
|
fi
|
||||||
|
if [[ ${{ needs.build.result }} != 'success' ]]; then
|
||||||
|
echo "Build Failed!"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -33,18 +33,18 @@ jobs:
|
||||||
name: E2E-Path-Filter
|
name: E2E-Path-Filter
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
ignore: ${{ steps.filter.outputs.ignore }}
|
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
||||||
steps:
|
steps:
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
filters: |
|
||||||
ignore:
|
not-ignore:
|
||||||
- '(docs/**)'
|
- '!(docs/**)'
|
||||||
build:
|
build:
|
||||||
name: E2E-Build
|
name: E2E-Build
|
||||||
needs: paths-filter
|
needs: paths-filter
|
||||||
if: ${{ needs.paths-filter.outputs.ignore == 'false' }}
|
if: ${{ needs.paths-filter.outputs.not-ignore == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -155,13 +155,16 @@ jobs:
|
||||||
name: E2E
|
name: E2E
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
needs: [ e2e ]
|
needs: [ e2e, paths-filter ]
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- name: Status
|
- name: Status
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ needs.e2e.result }} == 'success' || ${{ needs.paths-filter.outputs.ignore == 'true' }} ]]; then
|
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' ]]; then
|
||||||
echo "Passed!"
|
echo "Skip E2E!"
|
||||||
else
|
exit 0
|
||||||
|
fi
|
||||||
|
if [[ ${{ needs.e2e.result }} != 'success' ]]; then
|
||||||
|
echo "E2E Failed!"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -40,18 +40,18 @@ jobs:
|
||||||
name: Unit-Test-Path-Filter
|
name: Unit-Test-Path-Filter
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
ignore: ${{ steps.filter.outputs.ignore }}
|
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
||||||
steps:
|
steps:
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
filters: |
|
||||||
ignore:
|
not-ignore:
|
||||||
- '(docs/**)'
|
- '!(docs/**)'
|
||||||
unit-test:
|
unit-test:
|
||||||
name: Unit-Test
|
name: Unit-Test
|
||||||
needs: paths-filter
|
needs: paths-filter
|
||||||
if: ${{ needs.paths-filter.outputs.ignore == 'false' }}
|
if: ${{ needs.paths-filter.outputs.not-ignore == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -114,13 +114,16 @@ jobs:
|
||||||
name: Unit Test
|
name: Unit Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
needs: [ unit-test ]
|
needs: [ unit-test, paths-filter ]
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- name: Status
|
- name: Status
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ needs.unit-test.result }} == 'success' || ${{ needs.paths-filter.outputs.ignore == 'true' }} ]]; then
|
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' ]]; then
|
||||||
echo "Passed!"
|
echo "Skip Unit Test!"
|
||||||
else
|
exit 0
|
||||||
|
fi
|
||||||
|
if [[ ${{ needs.unit-test.result }} != 'success' ]]; then
|
||||||
|
echo "Unit Test Failed!"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue