Skip to content

Commit b460708

Browse files
committed
Improving pipeline
1 parent 5a649b7 commit b460708

37 files changed

Lines changed: 28 additions & 19 deletions

.github/workflows/maven.yaml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: CI Builds
33
on: [push]
44

55
jobs:
6-
run:
7-
name: Build
6+
generate-cursor-rules:
7+
name: Generate Cursor Rules
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
@@ -15,20 +15,29 @@ jobs:
1515
distribution: 'graalvm' # See 'Supported distributions' for available options
1616
java-version: '24'
1717
- name: Generate Cursor Rules
18-
run: cd pml && ./mvnw --batch-mode --no-transfer-progress verify --file pom.xml
19-
- name: Maven build
20-
run: cd examples/maven-demo && ./mvnw --batch-mode --no-transfer-progress verify --file pom.xml
21-
- name: Spring Boot build
22-
run: cd examples/spring-boot-demo/implementation && ./mvnw --batch-mode --no-transfer-progress verify -Pjacoco --file pom.xml
23-
- name: AWS Lambda build
24-
run: cd examples/aws-lambda-hello-world && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
25-
- name: Azure Function build
26-
run: cd examples/azure-function-hello-world && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
27-
- name: Spring Boot Memory Leak build
28-
run: cd examples/spring-boot-memory-leak-demo && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
29-
- name: Spring Boot Performance Bottleneck build
30-
run: cd examples/spring-boot-performance-bottleneck-demo && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
31-
- name: Spring Boot JMeter build
32-
run: cd examples/spring-boot-jmeter-demo && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
33-
- name: Quarkus build
34-
run: cd examples/quarkus-demo && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
18+
run: cd generator && ./mvnw --batch-mode --no-transfer-progress verify --file pom.xml
19+
20+
examples:
21+
name: Build Examples
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
example:
26+
- { name: "Maven", path: "examples/maven-demo", goal: "verify" }
27+
- { name: "Spring Boot", path: "examples/spring-boot-demo/implementation", goal: "verify -Pjacoco" }
28+
- { name: "AWS Lambda", path: "examples/aws-lambda-hello-world", goal: "package" }
29+
- { name: "Azure Function", path: "examples/azure-function-hello-world", goal: "package" }
30+
- { name: "Spring Boot Memory Leak", path: "examples/spring-boot-memory-leak-demo", goal: "package" }
31+
- { name: "Spring Boot Performance Bottleneck", path: "examples/spring-boot-performance-bottleneck-demo", goal: "package" }
32+
- { name: "Spring Boot JMeter", path: "examples/spring-boot-jmeter-demo", goal: "package" }
33+
- { name: "Quarkus", path: "examples/quarkus-demo", goal: "package" }
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
submodules: true # Fetches all submodules
38+
- uses: actions/setup-java@v4
39+
with:
40+
distribution: 'graalvm' # See 'Supported distributions' for available options
41+
java-version: '24'
42+
- name: Build ${{ matrix.example.name }}
43+
run: cd ${{ matrix.example.path }} && ./mvnw --batch-mode --no-transfer-progress ${{ matrix.example.goal }} --file pom.xml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pml/src/main/java/info/jab/pml/CursorRulesGenerator.java renamed to generator/src/main/java/info/jab/pml/CursorRulesGenerator.java

File renamed without changes.

pml/src/main/resources/100-java-checklist-guide.xml renamed to generator/src/main/resources/100-java-checklist-guide.xml

File renamed without changes.

pml/src/main/resources/110-java-maven-best-practices.xml renamed to generator/src/main/resources/110-java-maven-best-practices.xml

File renamed without changes.

0 commit comments

Comments
 (0)