-
Notifications
You must be signed in to change notification settings - Fork 1
86 lines (70 loc) · 2.25 KB
/
Copy pathci.yml
File metadata and controls
86 lines (70 loc) · 2.25 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CI Pipeline
on:
push:
branches: [main, master]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
# =========================================================================
# Stage 1: Fast Feedback (Parallel)
# =========================================================================
lint:
name: "1.1 Lint"
uses: ./.github/workflows/_lint.yml
docs:
name: "1.2 Docs"
uses: ./.github/workflows/_docs.yml
quality:
name: "1.3 Quality"
uses: ./.github/workflows/_quality.yml
# =========================================================================
# Stage 2: Core Build & Integration Tests
# =========================================================================
build:
name: "2.1 Build"
needs: [lint, docs]
uses: ./.github/workflows/_build.yml
# =========================================================================
# Stage 3: Benchmark & Package Artifacts
# =========================================================================
bench:
name: "3.1 Bench"
needs: [build]
uses: ./.github/workflows/_bench.yml
package:
name: "3.2 Package"
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up JDK 21
uses: ./.github/actions/setup-jdk-21
- name: Package JAR
run: ./mvnw clean package -DskipTests -B
- name: Upload ResiCache Artifact
uses: actions/upload-artifact@v5
with:
name: resicache-core-jar
path: target/ResiCache-*.jar
retention-days: 7
# =========================================================================
# Stage 4: Canonical Status Check Gate (Single Branch Protection Anchor)
# =========================================================================
ci-ok:
name: "ci-ok"
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [lint, docs, quality, build, bench, package]
if: always()
steps:
- name: Checkout Scripts
uses: actions/checkout@v5
- name: Validate All Pipeline Results
env:
RESULTS: ${{ toJSON(needs) }}
run: bash ./scripts/ci/require-all-green.sh