Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 24 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,44 +32,45 @@ jobs:
distribution: "temurin"
cache: maven

# -----------------------------
# 🔧 Core modules (publishable)
# -----------------------------
- name: Build core modules
run: mvn -B -q -ntp clean verify

# -----------------------------
# 🧪 Samples (tests + coverage)
# -----------------------------
- name: Build samples (tests + coverage)
- name: Build samples
run: mvn -B -q -ntp -f samples/pom.xml clean verify

# -----------------------------
# 📦 Generated Client Sources
# -----------------------------
- name: Upload generated client sources
- name: Upload generated client sources (SB3)
uses: actions/upload-artifact@v4
with:
name: generated-client-sources
path: samples/customer-service-client/target/generated-sources/openapi/src/gen/java
name: generated-client-sources-sb3
path: samples/spring-boot-3/customer-service-client/target/generated-sources/openapi/src/gen/java
if-no-files-found: warn
retention-days: 7

# -----------------------------
# 📄 OpenAPI Spec
# -----------------------------
- name: Upload OpenAPI spec (YAML)
- name: Upload generated client sources (SB4)
uses: actions/upload-artifact@v4
with:
name: customer-api-docs
path: samples/customer-service-client/target/classes/customer-api-docs.yaml
name: generated-client-sources-sb4
path: samples/spring-boot-4/customer-service-client/target/generated-sources/openapi/src/gen/java
if-no-files-found: warn
retention-days: 7

# -----------------------------
# 📊 Coverage (samples only)
# -----------------------------
- name: Upload coverage (samples)
- name: Upload OpenAPI spec (SB3)
uses: actions/upload-artifact@v4
with:
name: customer-api-docs-sb3
path: samples/spring-boot-3/customer-service-client/src/main/resources/customer-api-docs.yaml
if-no-files-found: warn
retention-days: 7

- name: Upload OpenAPI spec (SB4)
uses: actions/upload-artifact@v4
with:
name: customer-api-docs-sb4
path: samples/spring-boot-4/customer-service-client/src/main/resources/customer-api-docs.yaml
if-no-files-found: warn
retention-days: 7

- name: Upload coverage (samples only)
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
22 changes: 2 additions & 20 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,46 +28,28 @@ jobs:
language: [java-kotlin]

steps:
# -----------------------------
# 📥 Checkout
# -----------------------------
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

# -----------------------------
# ☕ JDK
# -----------------------------
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "temurin"
cache: maven

# -----------------------------
# 🔍 Initialize CodeQL
# -----------------------------
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

# -----------------------------
# 🏗 Build core (publishable modules)
# -----------------------------
- name: Build core modules
run: mvn -B -ntp -DskipTests clean package
run: mvn -B -ntp -DskipTests clean verify

# -----------------------------
# 🧪 Build samples (runtime coverage)
# -----------------------------
- name: Build samples
run: mvn -B -ntp -DskipTests -f samples/pom.xml clean package
run: mvn -B -ntp -DskipTests -f samples/pom.xml clean verify

# -----------------------------
# 🔎 Analyze
# -----------------------------
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Loading
Loading