From 7c2b159abae2dc0cf37a34515a004d4aaa8eb3b0 Mon Sep 17 00:00:00 2001 From: xqzp2026 Date: Wed, 9 Sep 2026 11:39:20 +0930 Subject: [PATCH] =?UTF-8?q?chore(cicd):=20=E6=B7=BB=E5=8A=A0=20Gitea=20Act?= =?UTF-8?q?ions=20=E6=B5=8B=E8=AF=95=E9=97=A8=E7=A6=81=20(REQ-20260908-000?= =?UTF-8?q?6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/xiaoqu-agent-service-ci.yml | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .gitea/workflows/xiaoqu-agent-service-ci.yml diff --git a/.gitea/workflows/xiaoqu-agent-service-ci.yml b/.gitea/workflows/xiaoqu-agent-service-ci.yml new file mode 100644 index 0000000..993860b --- /dev/null +++ b/.gitea/workflows/xiaoqu-agent-service-ci.yml @@ -0,0 +1,46 @@ +name: xiaoqu-agent-service CI + +on: + workflow_dispatch: + pull_request: + branches: [main] + paths: + - "xiaoqu-agent-service/**" + - ".gitea/workflows/xiaoqu-agent-service-ci.yml" + push: + branches: + - main + paths: + - "xiaoqu-agent-service/**" + - ".gitea/workflows/xiaoqu-agent-service-ci.yml" + +concurrency: + group: xiaoqu-agent-service-ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: self-hosted + timeout-minutes: 15 + defaults: + run: + shell: bash + working-directory: xiaoqu-agent-service + steps: + - name: Checkout + shell: bash + working-directory: ${{ github.workspace }} + env: + GITHUB_TOKEN: ${{ github.token }} + run: | + set -euo pipefail + git init . + git remote remove origin 2>/dev/null || true + git remote add origin https://gitea.ququclean.com/wangheng/xiaoqu_mcp_service.git + git -c credential.helper= \ + -c 'credential.helper=!f() { test "$1" = get || exit 0; printf "%s\n" "username=x-access-token" "password=$GITHUB_TOKEN"; }; f "$@"' \ + fetch --depth=1 origin "${{ github.sha }}" + git checkout --force --detach FETCH_HEAD + + - name: Test + run: ./mvnw test