From c48b620fb5483063db612de0c19d09225e8ff422 Mon Sep 17 00:00:00 2001 From: Hai Liang Wang Date: Thu, 15 Jun 2023 14:27:02 +0800 Subject: [PATCH] https://github.com/cskefu/cskefu/issues/776 fix checks perf --- .github/workflows/{package.yml => compile.yml} | 6 +++--- contact-center/admin/compile.sh | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) rename .github/workflows/{package.yml => compile.yml} (87%) diff --git a/.github/workflows/package.yml b/.github/workflows/compile.yml similarity index 87% rename from .github/workflows/package.yml rename to .github/workflows/compile.yml index f667d841..550fe06c 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/compile.yml @@ -1,10 +1,10 @@ -name: Package +name: Compile Checks on PRs on: pull_request: branches: [master, develop] types: [opened, synchronize, reopened] jobs: - build: + mvn-compile: runs-on: [self-hosted] steps: - uses: actions/checkout@v3 @@ -16,4 +16,4 @@ jobs: if [ -f ~/.cskefu.rc ]; then source ~/.cskefu.rc; else echo "Not found ~/.cskefu.rc; find info with https://github.com/cskefu/cskefu/issues/688"; exit 1; fi java -version && mvn -version $GITHUB_WORKSPACE/public/plugins/scripts/install-all.sh - cd $GITHUB_WORKSPACE/contact-center && ./admin/package.sh + cd $GITHUB_WORKSPACE/contact-center && ./admin/compile.sh diff --git a/contact-center/admin/compile.sh b/contact-center/admin/compile.sh index 25a37221..d4b2c19d 100755 --- a/contact-center/admin/compile.sh +++ b/contact-center/admin/compile.sh @@ -10,4 +10,10 @@ baseDir=$(cd `dirname "$0"`;pwd) # main [ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return cd $baseDir/../app -mvn clean compile +mvn -DskipTests clean compile +# take too long time with dev002 for uploading artifact, skip this operation +# $baseDir/deploy.app.sh + +if [ ! $? -eq 0 ]; then + exit 1 +fi \ No newline at end of file