Repository navigation
59 lines (56 loc) · 2.01 KB
/
Copy pathjava-stack.yml
File metadata and controls
59 lines (56 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: java-stack
on:
push:
branches: [main]
paths: ['stacks/java/**', '.github/workflows/java-stack.yml']
pull_request:
paths: ['stacks/java/**', '.github/workflows/java-stack.yml']
jobs:
build:
name: JDK ${{ matrix.java }} · 全模块 verify
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# 工具链 25 + 字节码 release 21:双运行时验证兼容面(J3b)
java: ['21', '25']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: maven
- name: 全模块构建 + 契约断言 + Testcontainers 集成
run: mvn -B -f stacks/java/pom.xml verify
archetype-smoke:
name: 双 archetype 生成工程冒烟
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
cache: maven
- name: 安装全部构件到本地仓库
run: mvn -B -f stacks/java/pom.xml install -DskipTests
- name: 生成 ddd 工程并全链路验收
run: |
mvn -B archetype:generate \
-DarchetypeGroupId=io.github.ydonghao \
-DarchetypeArtifactId=yarch-archetype-ddd \
-DarchetypeVersion=0.1.0 \
-DgroupId=io.github.ydonghao.ci -DartifactId=ci-ddd-svc \
-Dpackage=io.github.ydonghao.ciddd -Dversion=0.1.0-SNAPSHOT
mvn -B -f ci-ddd-svc/pom.xml verify
- name: 生成 simple 工程并全链路验收
run: |
mvn -B archetype:generate \
-DarchetypeGroupId=io.github.ydonghao \
-DarchetypeArtifactId=yarch-archetype-simple \
-DarchetypeVersion=0.1.0 \
-DgroupId=io.github.ydonghao.ci -DartifactId=ci-simple-svc \
-Dpackage=io.github.ydonghao.cisimple -Dversion=0.1.0-SNAPSHOT
mvn -B -f ci-simple-svc/pom.xml verify