|
|
@ -15,7 +15,7 @@ |
|
|
|
# limitations under the License. |
|
|
|
# limitations under the License. |
|
|
|
# |
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
on: ["pull_request"] |
|
|
|
on: ["pull_request", "push"] |
|
|
|
env: |
|
|
|
env: |
|
|
|
DOCKER_DIR: ./docker |
|
|
|
DOCKER_DIR: ./docker |
|
|
|
LOG_DIR: /tmp/dolphinscheduler |
|
|
|
LOG_DIR: /tmp/dolphinscheduler |
|
|
@ -52,7 +52,15 @@ jobs: |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
export MAVEN_OPTS='-Dmaven.repo.local=.m2/repository -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -Xmx3g' |
|
|
|
export MAVEN_OPTS='-Dmaven.repo.local=.m2/repository -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -Xmx3g' |
|
|
|
mvn test -B -Dmaven.test.skip=false |
|
|
|
mvn test -B -Dmaven.test.skip=false |
|
|
|
|
|
|
|
- name: Upload coverage report to codecov |
|
|
|
|
|
|
|
if: github.event_name == 'pull_request' |
|
|
|
|
|
|
|
run: | |
|
|
|
CODECOV_TOKEN="09c2663f-b091-4258-8a47-c981827eb29a" bash <(curl -s https://codecov.io/bash) |
|
|
|
CODECOV_TOKEN="09c2663f-b091-4258-8a47-c981827eb29a" bash <(curl -s https://codecov.io/bash) |
|
|
|
|
|
|
|
- name: Git fetch unshallow |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
git fetch --unshallow |
|
|
|
|
|
|
|
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" |
|
|
|
|
|
|
|
git fetch origin |
|
|
|
- name: Run SonarCloud Analysis |
|
|
|
- name: Run SonarCloud Analysis |
|
|
|
run: > |
|
|
|
run: > |
|
|
|
mvn verify --batch-mode |
|
|
|
mvn verify --batch-mode |
|
|
|