This commit is contained in:
1 parent
e4fe82283c
commit
f71498339c
1 file changed
+25
@@ -0,0 +1,25 @@
|
||||
# Author: fruit.com.cn
|
||||
# FruitServer 后端 CI:编译 + 测试门禁
|
||||
name: backend-ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [develop, main]
|
||||
pull_request:
|
||||
branches: [develop, main]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "21"
|
||||
cache: maven
|
||||
- name: 编译 + 单测
|
||||
run: mvn -B -T 1C test -DfailIfNoTests=false
|
||||
- name: 打包(跳过测试)
|
||||
if: success()
|
||||
run: mvn -B package -DskipTests -q
|
||||
Reference in new issue
Block a user