1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-06-16 18:30:03 +08:00
This commit is contained in:
Hai Liang Wang 2023-06-15 14:27:02 +08:00
parent e54c4259b1
commit c48b620fb5
2 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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