test/.gitea/workflows/demo.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 3: mapping key "name" already defined at line 1

26 lines
577 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: Gitea Actions Demo
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