From f71498339ca6b3631c04db991623f1e2036647c4 Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Thu, 29 Oct 2026 10:47:36 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=96=B0=E5=A2=9E=20Gitea=20Actions=20?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=EF=BC=88=E6=B5=8B=E8=AF=95/?= =?UTF-8?q?=E5=88=86=E6=9E=90/=E6=9E=84=E5=BB=BA=E9=97=A8=E7=A6=81?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..f48dbce --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -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