[CI] Improve CI (#9436)
* test * test * test * test * test * test * test * test * test * improve ci * improve ci * improve cidependabot/maven/org.apache.hadoop-hadoop-common-3.2.3
parent
fb0139e959
commit
d18cf184c6
|
|
@ -44,16 +44,17 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
filters: |
|
||||||
not-ignore:
|
not-ignore:
|
||||||
- '!(docs/**|dolphinscheduler-ui/**|dolphinscheduler-ui-next/**)'
|
- '!(docs/**)'
|
||||||
build:
|
build:
|
||||||
name: Backend-Build
|
name: Backend-Build
|
||||||
needs: paths-filter
|
needs: paths-filter
|
||||||
if: ${{ needs.paths-filter.outputs.not-ignore == 'true' }}
|
if: ${{ (needs.paths-filter.outputs.not-ignore == 'true') || (github.event_name == 'push') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -86,7 +87,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Status
|
- name: Status
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' ]]; then
|
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' && ${{ github.event_name }} == 'pull_request' ]]; then
|
||||||
echo "Skip Build!"
|
echo "Skip Build!"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
|
|
@ -44,7 +45,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: E2E-Build
|
name: E2E-Build
|
||||||
needs: paths-filter
|
needs: paths-filter
|
||||||
if: ${{ needs.paths-filter.outputs.not-ignore == 'true' }}
|
if: ${{ (needs.paths-filter.outputs.not-ignore == 'true') || (github.event_name == 'push') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -160,7 +161,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Status
|
- name: Status
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' ]]; then
|
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' && ${{ github.event_name }} == 'pull_request' ]]; then
|
||||||
echo "Skip E2E!"
|
echo "Skip E2E!"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
not-ignore: ${{ steps.filter.outputs.not-ignore }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
|
|
@ -51,7 +52,7 @@ jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
name: Unit-Test
|
name: Unit-Test
|
||||||
needs: paths-filter
|
needs: paths-filter
|
||||||
if: ${{ needs.paths-filter.outputs.not-ignore == 'true' }}
|
if: ${{ (needs.paths-filter.outputs.not-ignore == 'true') || (github.event_name == 'push') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -119,7 +120,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Status
|
- name: Status
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' ]]; then
|
if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' && ${{ github.event_name }} == 'pull_request' ]]; then
|
||||||
echo "Skip Unit Test!"
|
echo "Skip Unit Test!"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue