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