mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
19 lines
816 B
YAML
19 lines
816 B
YAML
name: Compile Checks on PRs
|
|
on:
|
|
pull_request:
|
|
branches: [master, develop]
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
mvn-compile:
|
|
runs-on: [self-hosted]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- run: |
|
|
cd $GITHUB_WORKSPACE && pwd
|
|
if [ ! -d .git ]; then git init; git config user.email "you@dummy.com"; git config user.name "dummy"; git add --all && git commit -q -m "Only fix mvn goals for github workflow"; fi
|
|
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
|
|
cd $GITHUB_WORKSPACE/cskefu-backend && ../public/scripts/compile.sh
|