From 95bc433596d1a376e449f47d98f0cf5bed673718 Mon Sep 17 00:00:00 2001 From: xiehaijun Date: Sat, 26 Jul 2025 17:45:52 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/demo.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加java的支持 --- .gitea/workflows/demo.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 2d74f4d..0d8d338 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -86,6 +86,15 @@ jobs: run: npm --version - name: Run tests run: echo "npm test 成功,actions/github-script@v5 创建合并请求" + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '21' + - name: Build with Maven + run: | + echo "mvn clean install -DskipTests" + mvn --version - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."