test/.gitea/workflows/demo.yaml
admin fea1e8621a
Some checks are pending
Java CI / build (push) Waiting to run
Update .gitea/workflows/demo.yaml
2025-03-22 12:29:45 +08:00

24 lines
551 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
steps:
# 1. 检出代码
- name: Checkout code
uses: http://172.23.112.123:3000/actions/checkout@main
# 2. 设置 OpenJDK 17
- name: Set up JDK 17
uses: http://172.23.112.123:3000/actions/setup-java.git@main
with:
distribution: 'temurin' # 使用 Eclipse TemurinOpenJDK 发行版)
java-version: '17'
# 3. 构建项目(假设使用 Maven
- name: Build with Maven
run: mvn -h