更新 .gitea/workflows/demo.yaml
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4m9s Details

添加java的支持
This commit is contained in:
xiehaijun 2025-07-26 17:45:52 +00:00
parent 213f541f69
commit 95bc433596
1 changed files with 9 additions and 0 deletions

View File

@ -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 }}."